Skip to main content

$setMyCommands

This function sets the list of commands supported by a bot for a specific language and scope.

Parameters

ParameterDescription
language_codeThe language code for which the commands are applicable.
scopeAn optional object specifying the command scope.
...commandsOne or more command objects to be set as supported.

Example

<AoiClient>.addCommand({
name: "setBotCommands",
code: `
$setMyCommands[en;{ bot_command: 'botCommand' };{ command: '/start', description: 'Start the bot' }]
$commit[Or:]
$setMyCommands[;;{ command: '/start', description: 'Start the bot' }]
`,
});