resetBotCommands method

Future<Result<Boolean>> resetBotCommands({
  1. required BotCommandScopeBase scope,
  2. required String langCode,
})

Reset Bot Commands.

ID: 3d8de0f9.

Implementation

Future<Result<Boolean>> resetBotCommands({
  required BotCommandScopeBase scope,
  required String langCode,
}) async {
  // Preparing the request.
  final request = BotsResetBotCommands(
    scope: scope,
    langCode: langCode,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}