Lulzx / telegram-bot-api-hx

Haxe Telegram Bot API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Haxe Telegram Bot API

License:MIT License


Languages

Language:Haxe 100.0%