set My Commands
suspend fun TelegramBotApiClient.setMyCommands(requestBody: SetMyCommandsRequest): TelegramResponse<Boolean>
Content copied to clipboard
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>
Content copied to clipboard
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.