telegramBotApi static method

TelegramClientData telegramBotApi({
  1. required String token_bot,
  2. String client_user_name = "",
  3. int client_user_id = 0,
  4. bool is_bot = true,
})

return original data json

Implementation

static TelegramClientData telegramBotApi({
  required String token_bot,
  String client_user_name = "",
  int client_user_id = 0,
  bool is_bot = true,
}) {
  return TelegramClientData(
    telegram_bot_api_token_bot: token_bot,
    telegramClientType: TelegramClientType.telegam_bot_api,
    tdlib_client_id: 0,
    client_user_name: client_user_name,
    client_user_id: client_user_id,
    is_bot: is_bot,
  );
}