Skip to content

GramIO API Reference / @gramio/contexts/dist / BotCommand

Class: BotCommand ​

Defined in: contexts/index.d.ts:1410

This object represents a bot command

Constructors ​

Constructor ​

new BotCommand(payload): BotCommand

Defined in: contexts/index.d.ts:1412

Parameters ​

ParameterType
payloadTelegramBotCommand

Returns ​

BotCommand

Properties ​

PropertyTypeDefined in
payloadTelegramBotCommandcontexts/index.d.ts:1411

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:1414

MDN

Returns ​

string


command ​

Get Signature ​

get command(): string

Defined in: contexts/index.d.ts:1416

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

Returns ​

string


description ​

Get Signature ​

get description(): string

Defined in: contexts/index.d.ts:1418

Description of the command; 1-256 characters

Returns ​

string