diff --git a/telethon/utils.py b/telethon/utils.py index 1c939e98..021e1145 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1254,8 +1254,7 @@ def pack_bot_file_id(file): if not size: return None - - size = size.location + return _encode_telegram_base64(_rle_encode(struct.pack( '