Telegram Bot Api Dart

Telegram Bot api dart library auto update from official Telegram-Bot-Api, Support All Method Api.

Install

dart pub add telegram_bot_api

Quickstart

import 'package:tele_bot_api/tele_bot_api.dart';
import 'package:jsonjs/main.dart';
Future<void> main(List<String> args) async {
  var tg = Telegram("paste_your_token_bot");
  var option = {
    "chat_id": 1234567, // paste_ your id telegram interger
    "text": "hay",
    "reply_markup": {
      "inline_keyboard": [
        [
          {"text": "gogole", "url": "google.com"}
        ]
      ]
    }
  };
  var data = await tg.request("sendMessage", option);
  print(jsonStringify(data, null, 2));
}

Libraries

telelegram_bot_api