View Source ExTDLib.Method.SetCommands (ExTDLib v0.0.4)
Sets the list of commands supported by the bot for the given user scope and language; for bots only. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| scope | BotCommandScope | The scope to which the commands are relevant; pass null to change commands in the default bot command scope. |
| language_code | string | A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commands. |
| commands | botCommand | List of the bot's commands. |
More details on telegram's documentation.