BotCommand

data class BotCommand(command: String, description: String)

This object represents a bot command.

Parameters

command

Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.

description

Description of the command, 3-256 characters.

Constructors

BotCommand
Link copied to clipboard
common
fun BotCommand(command: String, description: String)
Text of the command, 1-32 characters.

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
copy
Link copied to clipboard
common
fun copy(command: String, description: String): BotCommand
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

command
Link copied to clipboard
common
val command: String
Text of the command, 1-32 characters.
description
Link copied to clipboard
common
val description: String
Description of the command, 3-256 characters.