From 2de1606e3de254a65a3c12ba0a5364019a25324d Mon Sep 17 00:00:00 2001 From: Mario A <10923513+Midblyte@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:45:23 +0200 Subject: [PATCH] Fix GameHighScore in the chat with yourself (#669) Signed-off-by: Mario A --- pyrogram/types/bots_and_keyboards/game_high_score.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/types/bots_and_keyboards/game_high_score.py b/pyrogram/types/bots_and_keyboards/game_high_score.py index ff67e750..b9a77d33 100644 --- a/pyrogram/types/bots_and_keyboards/game_high_score.py +++ b/pyrogram/types/bots_and_keyboards/game_high_score.py @@ -64,7 +64,7 @@ class GameHighScore(Object): @staticmethod def _parse_action(client, service: raw.types.MessageService, users: dict): 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, client=client )