Skip to content

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

Class: BotCommand

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

This object represents a bot command

Constructors

Constructor

new BotCommand(payload): BotCommand

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

Parameters

ParameterType
payloadTelegramBotCommand

Returns

BotCommand

Properties

PropertyTypeDefined in
payloadTelegramBotCommandcontexts/index.d.ts:1223

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


command

Get Signature

get command(): string

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

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:1230

Description of the command; 1-256 characters

Returns

string