Skip to content

GramIO API Reference / gramio/dist / SetMyCommandsParams

Interface: SetMyCommandsParams

Defined in: @gramio/types/out/params.d.ts:2503

Params object for setMyCommands method

Properties

PropertyTypeDescriptionDefined in
commandsTelegramBotCommand[]A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.@gramio/types/out/params.d.ts:2507
language_code?stringA two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands@gramio/types/out/params.d.ts:2515
scope?TelegramBotCommandScopeA JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.@gramio/types/out/params.d.ts:2511