mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix sticker view (#244)
The filepath of a sticker is stored in the key "file".
This commit is contained in:
parent
5d02e0f6b3
commit
eb15f3ea4c
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ class MsgProxy:
|
||||||
doc = doc[field]
|
doc = doc[field]
|
||||||
else:
|
else:
|
||||||
doc = doc.get(field)
|
doc = doc.get(field)
|
||||||
|
if "file" in doc:
|
||||||
|
return doc["file"]
|
||||||
if doc is None:
|
if doc is None:
|
||||||
return {}
|
return {}
|
||||||
return doc
|
return doc
|
||||||
|
|
Loading…
Reference in a new issue