/telegram-bot-api-hx

Haxe Telegram Bot API

Primary LanguageHaxeMIT LicenseMIT

telegram-bot-api-hx

Haxe Telegram Bot API

  • Automatically extracts Telegram BotAPI
  • Currenlty provides full type support.
  • String enums and polling in the next update.

Example

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}');
	}
});