Removed Problematic Line

The line size = size.location was removed because it was causing an error when size did not have a location attribute.
This commit is contained in:
TrueSaiyan 2024-06-19 00:16:09 +08:00 committed by GitHub
parent 04aea46fe4
commit 717384b1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1254,8 +1254,7 @@ def pack_bot_file_id(file):
if not size: if not size:
return None return None
size = size.location
return _encode_telegram_base64(_rle_encode(struct.pack( return _encode_telegram_base64(_rle_encode(struct.pack(
'<iiqqqqib', 2, file.dc_id, file.id, file.access_hash, '<iiqqqqib', 2, file.dc_id, file.id, file.access_hash,
size.volume_id, 0, size.local_id, 2 # 0 = old `secret` size.volume_id, 0, size.local_id, 2 # 0 = old `secret`