mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-27 16:29:52 +03:00
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:
parent
04aea46fe4
commit
717384b1f5
|
@ -1255,7 +1255,6 @@ 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`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user