callbackQuery_toJson method
FutureOr<Map?>
callbackQuery_toJson({
- required Map update,
- required TelegramClientData telegramClientData,
- required bool is_lite,
- bool? isUseCache,
- Duration? durationCacheExpire,
method CallbackQueryData
Implementation
FutureOr<Map?> callbackQuery_toJson({
required Map update,
required TelegramClientData telegramClientData,
required bool is_lite,
bool? isUseCache,
Duration? durationCacheExpire,
}) async {
// http://0.0.0.0:8704/classtd_1_1td__api_1_1message.html
if (update["@type"] == "updateNewCallbackQuery" ||
update["@type"] == "updateNewInlineCallbackQuery") {
final Map callback_query = await callbackQuery_CallbackQuery(
callbackQuery: update,
telegramClientData: telegramClientData,
is_lite: is_lite,
isUseCache: isUseCache,
durationCacheExpire: durationCacheExpire,
);
return {
"@type": "updateCallbackQuery",
"callback_query": callback_query,
};
}
return null;
}