From 657e8a70c9226cb1670612a888afc76db5f4c6db Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 27 Sep 2017 12:08:37 +0200 Subject: [PATCH] Fix CdnDecrypter incorrectly accessing clients' timeout (closes #265) --- telethon/crypto/cdn_decrypter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/crypto/cdn_decrypter.py b/telethon/crypto/cdn_decrypter.py index 000cfc30..772267f5 100644 --- a/telethon/crypto/cdn_decrypter.py +++ b/telethon/crypto/cdn_decrypter.py @@ -42,7 +42,7 @@ class CdnDecrypter: session.port = dc.port cdn_client = client_cls( # Avoid importing TelegramBareClient session, client.api_id, client.api_hash, - timeout=client._timeout + timeout=client._sender.connection.get_timeout() ) # This will make use of the new RSA keys for this specific CDN. #