Skip to content

GramIO API Reference / gramio/dist / TelegramGame

Interface: TelegramGame

Defined in: @gramio/types/out/objects.d.ts:8736

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

Documentation

Properties

PropertyTypeDescriptionDefined in
animation?TelegramAnimationOptional. Animation that will be displayed in the game message in chats. Upload via BotFather@gramio/types/out/objects.d.ts:8760
descriptionstringDescription of the game@gramio/types/out/objects.d.ts:8744
photoTelegramPhotoSize[]Photo that will be displayed in the game message in chats.@gramio/types/out/objects.d.ts:8748
text?stringOptional. 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.@gramio/types/out/objects.d.ts:8752
text_entities?TelegramMessageEntity[]Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.@gramio/types/out/objects.d.ts:8756
titlestringTitle of the game@gramio/types/out/objects.d.ts:8740