From 717384b1f51c5645486486394984ea99c346f294 Mon Sep 17 00:00:00 2001 From: TrueSaiyan Date: Wed, 19 Jun 2024 00:16:09 +0800 Subject: [PATCH] Removed Problematic Line The line size = size.location was removed because it was causing an error when size did not have a location attribute. --- telethon/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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( '