Skip to content

idrats/dart-telegrambot

 
 

Repository files navigation

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

About

Dart library to implement a Telegram Bot.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%