Body

data class Body(val scope: BotCommandScope? = null, val languageCode: String? = null)(source)

Request body for DeleteMyCommandsApi

Constructors

Link copied to clipboard
constructor(scope: BotCommandScope? = null, languageCode: String? = null)

Properties

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.