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.
| Name | Type | Description | Required |
|---|---|---|---|
| scope | botCommandScope | null | array | stdClass | A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault. | no |
| language_code | string | null | A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands | no |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : bool | BPT\types\responseError
Static or normal : Static
request::deleteMyCommands(scope: BotCommandScope | null, language_code: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);request::deleteMyCommands(['scope' => BotCommandScope | null, 'language_code' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);request::deleteMyCommands();