messages.GetGameHighScores

class pyrogram.raw.functions.messages.GetGameHighScores

Get highscores of a game

Details:
  • Layer: 223

  • 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
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── idint
└── user_idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

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