telegrambot 0.1.0 copy "telegrambot: ^0.1.0" to clipboard
telegrambot: ^0.1.0 copied to clipboard

Dart 1 only

Library to implement a Telegram Bot.

Telegram Bot #

Introduction #

Library to implement a Telegram Bot.

Example #

var bot = new TelegramBot('<token>');

var updates = pollForUpdates(bot);

await for (var update in updates) {
  if (update.message != null) {
      bot.sendCommand(new SendMessage.plainText(update.message.chat.id,
          "Hello, I'm just a bot. Don't expect too much from me."));
  }
}

Features #

  • Poll for incoming messages
  • Sending text messages
    • Plaintext, html, markdown
    • Reply, Forward
    • Keyboards
  • Inline bot
    • Reply with text
    • Reply with GIF
    • Support for InlineKeyboard

Missing Features #

  • Webhooks
  • Audio/Video/Files/Photos
  • Chat Management
  • Games
  • Payments
  • Framework
    • Logging
    • Error handling
    • Strong validation

License and contributors #

0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Library to implement a Telegram Bot.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on telegrambot