SetMyCommandsRequest

data class SetMyCommandsRequest(commands: List<BotCommand>)

Request body for setMyCommands

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.

Constructors

SetMyCommandsRequest
Link copied to clipboard
common
fun SetMyCommandsRequest(commands: List<BotCommand> = emptyList())
A JSON-serialized list of bot commands to be set as the list of the bot's commands.

Functions

component1
Link copied to clipboard
common
operator fun component1(): List<BotCommand>
copy
Link copied to clipboard
common
fun copy(commands: List<BotCommand> = emptyList()): SetMyCommandsRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

commands
Link copied to clipboard
common
val commands: List<BotCommand>
A JSON-serialized list of bot commands to be set as the list of the bot's commands.