setMyCommands

suspend fun TelegramBotApiClient.setMyCommands(requestBody: SetMyCommandsRequest): TelegramResponse<Boolean>

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

suspend fun TelegramBotApiClient.setMyCommands(commands: List<BotCommand> = emptyList()): TelegramResponse<Boolean>

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

Parameters

commands

A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.