Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned.
| Name | Type | Description | Required |
|---|---|---|---|
| scope | botCommandScope | null | array | stdClass | A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault. | no |
| language_code | string | null | A two-letter ISO 639-1 language code or an empty string | 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 : BPT\types\botCommand[] | BPT\types\responseError | bool
Static or normal : Static
request::getMyCommands(scope: BotCommandScope | null, language_code: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);request::getMyCommands(['scope' => BotCommandScope | null, 'language_code' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);request::getMyCommands();