Class SetMyCommandsMethod.

Use this method to change the list of the bot's commands. Returns True on success.

see
package Default

 Methods

create()

create(array<mixed,\TgBotApi\BotApiBase\Type\BotCommandType> $commands) 
Static

Parameters

$commands

array<mixed,\TgBotApi\BotApiBase\Type\BotCommandType>

 Properties

 

A JSON-serialized list of bot commands to be set as the list of the bot's commands.

$commands : array<mixed,\TgBotApi\BotApiBase\Type\BotCommandType>

Default

At most 100 commands can be specified.