Games

Game

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

fields

fieldtyperequireddescription
titlestringrequiredTitle of the game
descriptionstringrequiredDescription of the game
photoPhotoSize[]requiredPhoto that will be displayed in the game message in chats
textstringoptionalOptional. 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_entitiesMessageEntity[]optionalOptional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
animationAnimationoptionalOptional. Animation that will be displayed in the game message in chats. Upload via BotFather.

import

types.ts
import type { Game } from "@yaebal/types";

used by

types