From f1a8cd1038c2fcec885501df17f9132e5bade805 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 4 Apr 2018 22:48:14 +0200 Subject: [PATCH] Rename to image_size_attributes --- pyrogram/client/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/utils.py b/pyrogram/client/utils.py index 80c9bd11..283dc48f 100644 --- a/pyrogram/client/utils.py +++ b/pyrogram/client/utils.py @@ -279,7 +279,7 @@ def parse_message(message: types.Message, users: dict, chats: dict): file_size=doc.size ) elif types.DocumentAttributeSticker in attributes: - image_size_attribute = attributes[types.DocumentAttributeImageSize] + image_size_attributes = attributes[types.DocumentAttributeImageSize] sticker = pyrogram.Sticker( file_id=encode( @@ -291,8 +291,8 @@ def parse_message(message: types.Message, users: dict, chats: dict): doc.access_hash ) ), - width=image_size_attribute.w, - height=image_size_attribute.h, + width=image_size_attributes.w, + height=image_size_attributes.h, thumb=parse_thumb(doc.thumb), # TODO: Emoji, set_name and mask_position file_size=doc.size,