From 5ae66d7d409b9e3a827015eab76eca29c6169253 Mon Sep 17 00:00:00 2001 From: luckydonald Date: Sun, 8 Nov 2020 12:57:55 +0100 Subject: [PATCH] Rename `photo_size` to `photo_type`. --- telethon/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/utils.py b/telethon/utils.py index 6d9d2042..aef75bb6 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1157,13 +1157,13 @@ def resolve_bot_file_id(file_id): # okey, so we're dealing with a photo. file: PhotoFileId - photo_size = 's' if file.id or file.access_hash else 'x' + photo_type = 's' if file.id or file.access_hash else 'x' foto_size = file.photosize if isinstance(foto_size, (PhotoFileId.PhotosizeSourceLegacy, PhotoFileId.PhotosizeSourceThumbnail, PhotoFileId.PhotosizeSourceDialogPhotoSmall, PhotoFileId.PhotosizeSourceDialogPhotoBig, PhotoFileId.PhotosizeSourceStickersetThumbnail)): sizes = [ types.PhotoSize( - type=photo_size, + type=photo_type, location=types.FileLocationToBeDeprecated( volume_id=foto_size.volume_id, local_id=foto_size.location_local_id,