GetInlineGameHighScoresRequest

Only bots can use this request. See code examples.

---functions---
messages.getInlineGameHighScores#0f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores

Returns

messages.HighScores

This type can only be an instance of:

HighScores

Parameters

idInputBotInlineMessageID
user_idInputUserAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).

Known RPC errors

This request can cause 2 known errors:

MessageIdInvalidErrorThe specified message ID is invalid or you can't do that operation on such message.
UserBotRequiredErrorThis method can only be called by a bot.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.GetInlineGameHighScoresRequest(
        id=types.InputBotInlineMessageID(
            dc_id=42,
            id=-12398745604826,
            access_hash=-12398745604826
        ),
        user_id='username'
    ))
    print(result.stringify())