GramIO API Reference / @gramio/contexts/dist / Game
Class: Game
Defined in: contexts/index.d.ts:1543
This object represents a game.
Constructors
Constructor
new Game(
payload):Game
Defined in: contexts/index.d.ts:1545
Parameters
| Parameter | Type |
|---|---|
payload | TelegramGame |
Returns
Game
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramGame | contexts/index.d.ts:1544 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1547
Returns
string
animation
Get Signature
get animation():
AnimationAttachment
Defined in: contexts/index.d.ts:1570
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:1551
Description of the game
Returns
string
photo
Get Signature
get photo():
PhotoSize[]
Defined in: contexts/index.d.ts:1553
Photo that will be displayed in the game message in chats.
Returns
text
Get Signature
get text():
string
Defined in: contexts/index.d.ts:1560
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:1565
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:1549
Title of the game
Returns
string