GramIO API Reference / gramio/dist / CommandMeta
Interface: CommandMeta
Defined in: gramio/index.d.ts:1075
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:1077 |
hide? | boolean | Exclude this command from syncCommands(). The handler still works. Default false | gramio/index.d.ts:1083 |
locales? | Record<string, string> | Localized descriptions keyed by IETF language tag | gramio/index.d.ts:1079 |
scopes? | (TelegramBotCommandScope | ScopeShorthand)[] | Where this command is visible. Default: ["default"] | gramio/index.d.ts:1081 |