messages.GetGameHighScores

class pyrogram.raw.functions.messages.GetGameHighScores

Get highscores of a game

Details:
  • Layer: 227

  • ID: E822649D

Parameters:
  • peer (InputPeer) – Where was the game sent

  • id (int 32-bit) – ID of message with game media attachment

  • user_id (InputUser) – Get high scores made by a certain user

Returns:

messages.HighScores

TL Schema

messages.getGameHighScores#e822649d
peer:InputPeer
id:int
user_id:InputUser

= messages.HighScores

Parameter Tree

GetGameHighScores
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── id → int
└── user_id → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

await app.invoke(
    GetGameHighScores(
        peer=await app.resolve_peer(chat_id),
        id=0,
        user_id=await app.resolve_user(chat_id),
    )
)