Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_types/settings.ts

Types for the Telegram Bot API
Go to Latest
import * as grammyTypes from "https://deno.land/x/grammy_types@v3.1.1/settings.ts";

Interfaces

Represents the scope of bot commands, covering all group and supergroup chat administrators.

Represents the scope of bot commands, covering all group and supergroup chats.

Represents the scope of bot commands, covering all private chats.

Represents the scope of bot commands, covering a specific chat.

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

Represents the scope of bot commands, covering a specific member of a group or supergroup chat.

Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.

This object represents the bot's description.

This object represents the bot's name.

This object represents the bot's short description.

Represents a menu button, which opens the bot's list of commands.

Describes that no specific value for the menu button was set.

Represents a menu button, which launches a Web App.

Type Aliases

This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:

  • BotCommandScopeDefault
  • BotCommandScopeAllPrivateChats
  • BotCommandScopeAllGroupChats
  • BotCommandScopeAllChatAdministrators
  • BotCommandScopeChat
  • BotCommandScopeChatAdministrators
  • BotCommandScopeChatMember

This object describes the bot's menu button in a private chat. It should be one of

  • MenuButtonCommands
  • MenuButtonWebApp
  • MenuButtonDefault