2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 22:35:36 +00:00

Add mime_type, file_name and date to Sticker objects

This commit is contained in:
Dan
2018-04-16 00:59:41 +02:00
parent ddfce4b7ea
commit 6275a4003f
2 changed files with 4 additions and 1 deletions

View File

@@ -409,6 +409,9 @@ def parse_message(
thumb=parse_thumb(doc.thumb),
# TODO: Emoji, set_name and mask_position
file_size=doc.size,
mime_type=doc.mime_type,
file_name=file_name,
date=doc.date
)
else:
document = pyrogram.Document(