GramIO API Reference / @gramio/contexts/dist / BotCommand
Class: BotCommand
Defined in: contexts/index.d.ts:1183
This object represents a bot command
Constructors
Constructor
new BotCommand(
payload):BotCommand
Defined in: contexts/index.d.ts:1185
Parameters
| Parameter | Type |
|---|---|
payload | TelegramBotCommand |
Returns
BotCommand
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramBotCommand | contexts/index.d.ts:1184 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1187
Returns
string
command
Get Signature
get command():
string
Defined in: contexts/index.d.ts:1189
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:1191
Description of the command; 1-256 characters
Returns
string