setBotPrecheckoutResults method

Future<Result<Boolean>> setBotPrecheckoutResults({
  1. required bool success,
  2. required int queryId,
  3. String? error,
})

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>();
}