diff --git a/telethon/utils.py b/telethon/utils.py index 7d058518..45ec3584 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1265,10 +1265,10 @@ def pack_bot_file_id(file): if not size: return None - size = size.location + # Location is depricated since layer 128. See #3242 return _encode_telegram_base64(_rle_encode(struct.pack( '