Game¶
- class litegram.types.game.Game(*, 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.
Source: https://core.telegram.org/bots/api#game
- 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
litegram.methods.set_game_score.SetGameScore, or manually edited usinglitegram.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.