answerCallbackQuery method
answerCallbackQuery for bot only
Implementation
Future<Map> answerCallbackQuery(
callback_query_id, {
String? text,
bool show_alert = false,
String? url,
int? cache_time,
required int clientId,
String? extra,
bool? isUseCache,
Duration? durationCacheExpire,
}) async {
Map<String, dynamic> data = {
"callback_query_id": callback_query_id,
};
if (text != null) {
data["text"] = text;
}
data["show_alert"] = show_alert;
if (url != null) {
data["url"] = url;
}
if (cache_time != null) {
data["cache_time"] = cache_time;
}
return await invoke(
"answerCallbackQuery",
parameters: data,
clientId: clientId,
extra: extra,
isUseCache: isUseCache,
durationCacheExpire: durationCacheExpire,
);
}