Library to implement a Telegram Bot.
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."));
}
}
- Poll for incoming messages
- Sending text messages
- Plaintext, html, markdown
- Reply, Forward
- Keyboards
- Inline bot
- Reply with text
- Reply with GIF
- Support for InlineKeyboard
- Webhooks
- Audio/Video/Files/Photos
- Chat Management
- Games
- Payments
- Framework
- Logging
- Error handling
- Strong validation