From 5772a5483c1bb60149b55df6650444da7fa46c23 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 13 Feb 2019 09:16:34 +0100 Subject: [PATCH] Check dc_id in resolve_bot_file_id --- telethon/utils.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/telethon/utils.py b/telethon/utils.py index 8e9d8a2f..b692cdf0 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -905,6 +905,16 @@ def resolve_bot_file_id(file_id): data = data[:-1] if len(data) == 24: file_type, dc_id, media_id, access_hash = struct.unpack('