GramIO API Reference / @gramio/contexts/dist / Game
Class: Game
Defined in: contexts/index.d.ts:1721
This object represents a game.
Constructors
Constructor
new Game(
payload):Game
Defined in: contexts/index.d.ts:1723
Parameters
| Parameter | Type |
|---|---|
payload | TelegramGame |
Returns
Game
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramGame | contexts/index.d.ts:1722 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1725
Returns
string
animation
Get Signature
get animation():
AnimationAttachment
Defined in: contexts/index.d.ts:1748
Animation that will be displayed in the game message in chats. Upload via BotFather
Returns
description
Get Signature
get description():
string
Defined in: contexts/index.d.ts:1729
Description of the game
Returns
string
photo
Get Signature
get photo():
PhotoSize[]
Defined in: contexts/index.d.ts:1731
Photo that will be displayed in the game message in chats.
Returns
text
Get Signature
get text():
string
Defined in: contexts/index.d.ts:1738
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.
Returns
string
textEntities
Get Signature
get textEntities():
MessageEntity[]
Defined in: contexts/index.d.ts:1743
Special entities that appear in text, such as usernames, URLs, bot commands, etc.
Returns
title
Get Signature
get title():
string
Defined in: contexts/index.d.ts:1727
Title of the game
Returns
string