mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix GameHighScore in the chat with yourself (#669)
Signed-off-by: Mario A <marioanacl22@gmail.com>
This commit is contained in:
parent
5e77387919
commit
2de1606e3d
@ -64,7 +64,7 @@ class GameHighScore(Object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_action(client, service: raw.types.MessageService, users: dict):
|
def _parse_action(client, service: raw.types.MessageService, users: dict):
|
||||||
return GameHighScore(
|
return GameHighScore(
|
||||||
user=types.User._parse(client, users[utils.get_raw_peer_id(service.from_id)]),
|
user=types.User._parse(client, users[utils.get_raw_peer_id(service.from_id or service.peer_id)]),
|
||||||
score=service.action.score,
|
score=service.action.score,
|
||||||
client=client
|
client=client
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user