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>.

NameTypeDescription
scopeBotCommandScopeThe scope to which the commands are relevant; pass null to change commands in the default bot command scope.
language_codestringA 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.
commandsbotCommandList of the bot's commands.

More details on telegram's documentation.