mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Remove location attribute in packing bot_file_id
This commit is contained in:
parent
f9643bf737
commit
5341848190
|
@ -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(
|
||||
'<iiqqqqib', 2, file.dc_id, file.id, file.access_hash,
|
||||
size.volume_id, 0, size.local_id, 2 # 0 = old `secret`
|
||||
0, 0, 0, 2 # 0 = old `secret`
|
||||
)))
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user