SetMyCommandsRequest

data class SetMyCommandsRequest(commands: List<BotCommand>, scope: BotCommandScope?, language_code: String?) : TelegramRequest

Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.

Constructors

SetMyCommandsRequest
Link copied to clipboard
fun SetMyCommandsRequest(commands: List<BotCommand>, scope: BotCommandScope? = null, language_code: String? = null)

Properties

commands
Link copied to clipboard
val commands: List<BotCommand>
A JSON-serialized list of bot commands to be set as the list of the bot's commands.
language_code
Link copied to clipboard
val language_code: String? = null
A two-letter ISO 639-1 language code.
scope
Link copied to clipboard
val scope: BotCommandScope? = null
A JSON-serialized object, describing scope of users for which the commands are relevant.