TelegramBotApi constructor
TelegramBotApi({})
list methods: api:
tg.request("getMe");
Implementation
TelegramBotApi({
required String tokenBot,
Map? clientOption,
this.serverUniverseNative,
String telegramCryptoKey = "aeatmlvodkm9ii37l2p0WGkaAAF3BWCh",
EventEmitter? eventEmitter,
this.event_invoke = "invoke",
this.event_update = "update",
Uri? telegramUrlWebhook,
Client? httpClient,
}) {
if (httpClient != null) {
http_client = httpClient;
}
telegram_crypto.defaultKey = telegramCryptoKey;
if (telegramUrlWebhook != null) {
telegram_url_webhook = telegramUrlWebhook;
}
if (eventEmitter != null) {
event_emitter = eventEmitter;
}
token_bot = tokenBot;
if (clientOption != null) {
client_option.addAll(clientOption);
}
}