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

x/grammy_types/mod.ts>Game

Type declarations of the Telegram Bot API.
Latest
interface Game
import { type Game } from "https://deno.land/x/grammy_types@v3.16.0/mod.ts";

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

Properties

title: string

Title of the game

description: string

Description of the game

photo: PhotoSize[]

Photo that will be displayed in the game message in chats.

text: string

Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.

text_entities: MessageEntity[]

Special entities that appear in text, such as usernames, URLs, bot commands, etc.

animation: Animation

Animation that will be displayed in the game message in chats. Upload via BotFather