Skip to content

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

PropertyTypeDescriptionDefined in
descriptionstringCommand description shown in the Telegram menu (1-256 chars)gramio/index.d.ts:1077
hide?booleanExclude this command from syncCommands(). The handler still works. Default falsegramio/index.d.ts:1083
locales?Record<string, string>Localized descriptions keyed by IETF language taggramio/index.d.ts:1079
scopes?(TelegramBotCommandScope | ScopeShorthand)[]Where this command is visible. Default: ["default"]gramio/index.d.ts:1081