mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 07:54:52 +00:00
Rename to image_size_attributes
This commit is contained in:
parent
2acb38649d
commit
f1a8cd1038
1 changed files with 3 additions and 3 deletions
|
|
@ -279,7 +279,7 @@ def parse_message(message: types.Message, users: dict, chats: dict):
|
||||||
file_size=doc.size
|
file_size=doc.size
|
||||||
)
|
)
|
||||||
elif types.DocumentAttributeSticker in attributes:
|
elif types.DocumentAttributeSticker in attributes:
|
||||||
image_size_attribute = attributes[types.DocumentAttributeImageSize]
|
image_size_attributes = attributes[types.DocumentAttributeImageSize]
|
||||||
|
|
||||||
sticker = pyrogram.Sticker(
|
sticker = pyrogram.Sticker(
|
||||||
file_id=encode(
|
file_id=encode(
|
||||||
|
|
@ -291,8 +291,8 @@ def parse_message(message: types.Message, users: dict, chats: dict):
|
||||||
doc.access_hash
|
doc.access_hash
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
width=image_size_attribute.w,
|
width=image_size_attributes.w,
|
||||||
height=image_size_attribute.h,
|
height=image_size_attributes.h,
|
||||||
thumb=parse_thumb(doc.thumb),
|
thumb=parse_thumb(doc.thumb),
|
||||||
# TODO: Emoji, set_name and mask_position
|
# TODO: Emoji, set_name and mask_position
|
||||||
file_size=doc.size,
|
file_size=doc.size,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue