GameHighScore

class telegram.GameHighScore(position, user, score, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents one row of the high scores table for a game.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their position, user and score are equal.

Parameters:
position[source]

Position in high score table for the game.

Type:

int

user[source]

User.

Type:

telegram.User

score[source]

Score.

Type:

int

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().