Body

data class Body(val commands: List<BotCommand> = emptyList(), val scope: BotCommandScope? = null, val languageCode: String? = null)(source)

Request body for SetMyCommandsApi

Constructors

Link copied to clipboard
constructor(commands: List<BotCommand> = emptyList(), scope: BotCommandScope? = null, languageCode: String? = null)

Properties

Link copied to clipboard

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.

Link copied to clipboard
@SerialName(value = "language_code")
val languageCode: String? = null

A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands

Link copied to clipboard
val scope: BotCommandScope? = null

A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.