class*, title: str, description: str, photo: List[PhotoSize], text: str | None = None, text_entities: List[MessageEntity] | None = None, animation: Animation | None = None, **extra_data: Any)[source]#

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


title: str#

Title of the game

description: str#

Description of the game

photo: List[PhotoSize]#

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

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

text: str | None#

Optional. 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 aiogram.methods.set_game_score.SetGameScore, or manually edited using aiogram.methods.edit_message_text.EditMessageText. 0-4096 characters.

text_entities: List[MessageEntity] | None#

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

animation: Animation | None#

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