tdlib static method

TelegramClientData tdlib({
  1. required int tdlib_client_id,
  2. String client_user_name = "",
  3. int client_tg_user_id = 0,
  4. bool is_bot = true,
})

return original data json

Implementation

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