From eb15f3ea4c64ef70bec3702dea5f912b2faa038c Mon Sep 17 00:00:00 2001 From: JingMatrix Date: Sun, 31 Oct 2021 18:46:49 +0100 Subject: [PATCH] Fix sticker view (#244) The filepath of a sticker is stored in the key "file". --- tg/msg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tg/msg.py b/tg/msg.py index 35af44a..5c35ef4 100644 --- a/tg/msg.py +++ b/tg/msg.py @@ -48,6 +48,8 @@ class MsgProxy: doc = doc[field] else: doc = doc.get(field) + if "file" in doc: + return doc["file"] if doc is None: return {} return doc