get_game_high_scores()¶
- Client.get_game_high_scores()¶
Get data for high score tables.
Usable by Users Bots
- Parameters:¶
user_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).
chat_id (``int`` | ``str``, *optional*) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str). Required if inline_message_id is not specified.
message_id (``int``, *optional*) – Identifier of the sent message. Required if inline_message_id is not specified.
- Returns:¶
List of :obj:`~pyrogram.types.GameHighScore` (On success.)
- Raises:¶
RPCError –
Example
scores = await app.get_game_high_scores(user_id, chat_id, message_id) print(scores)