setBotPrecheckoutResults method
Set Bot Precheckout Results.
ID: 09c2dd95
.
Implementation
Future<Result<Boolean>> setBotPrecheckoutResults({
required bool success,
required int queryId,
String? error,
}) async {
// Preparing the request.
final request = MessagesSetBotPrecheckoutResults(
success: success,
queryId: queryId,
error: error,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}