GramIO API Reference / gramio/dist / CommandMeta
Interface: CommandMeta
Defined in: gramio/index.d.ts:1171
Metadata for a bot command, used by syncCommands() to push descriptions, localized names, and visibility scopes to the Telegram API.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
description | string | Command description shown in the Telegram menu (1-256 chars) | gramio/index.d.ts:1173 |
hide? | boolean | Exclude this command from syncCommands(). The handler still works. Default false | gramio/index.d.ts:1179 |
locales? | Record<string, string> | Localized descriptions keyed by IETF language tag | gramio/index.d.ts:1175 |
scopes? | (TelegramBotCommandScope | ScopeShorthand)[] | Where this command is visible. Default: ["default"] | gramio/index.d.ts:1177 |