Update telethon/network/connection/tcpmtproxy.py

Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
Confused Character 2024-02-16 20:20:13 +03:30 committed by GitHub
parent 9743d1eefd
commit 524ef32d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,7 +139,7 @@ class TcpMTProxy(ObfuscatedConnection):
try:
secret_bytes = bytes.fromhex(secret)
except:
except ValueError:
try:
secret_bytes = base64.b64decode(secret.encode())
except binascii.Error: