setBotCallbackAnswer method
Set Bot Callback Answer.
ID: d58f130a
.
Implementation
Future<Result<Boolean>> setBotCallbackAnswer({
required bool alert,
required int queryId,
String? message,
String? url,
required int cacheTime,
}) async {
// Preparing the request.
final request = MessagesSetBotCallbackAnswer(
alert: alert,
queryId: queryId,
message: message,
url: url,
cacheTime: cacheTime,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}