deleteMyCommands method

Future<bool> deleteMyCommands({
  1. BotCommandScope? scope,
  2. String? languageCode,
})
inherited

Use this method to delete the list of the bot's commands for the given scope and user language.

After deletion, higher level commands will be shown to affected users.

Returns True on success.

Implementation

Future<bool> deleteMyCommands({
  BotCommandScope? scope,
  String? languageCode,
}) {
  return _client.apiCall(_token, 'deleteMyCommands', {
    'scope': scope,
    'language_code': languageCode,
  });
}