Data about the represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers
Animation that will be displayed in the game message in chats. Upload via BotFather
Description of the game
Special entities that appear in text, such as usernames, URLs, bot commands, etc
Photo that will be displayed in the game message in chats
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
Title of the game
The client that instantiated this
Protected
_cloneProtected
_patchProtected
_updateUse this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game.
Target user id
Optional
options: Omit<{ out parameters
Returns an Array of GameHighScore objects. This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change.
Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned.
User identifier
New score, must be non-negative
Optional
options: Omit<{ out parameters
On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this