- Automatically extracts Telegram BotAPI
- Currenlty provides full type support.
- String enums and polling in the next update.
var botAPI:TelegramBotAPI = new TelegramBotAPI(BOT_TOKEN); // add bot as prefix to token
botAPI.getMe(function(r:Response<User>) {
if (r.ok) {
trace(r.result);
} else {
trace('${r.error_code}: ${r.description}');
}
});