mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
Update telethon/network/connection/tcpmtproxy.py
Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
parent
9743d1eefd
commit
524ef32d37
|
@ -139,7 +139,7 @@ class TcpMTProxy(ObfuscatedConnection):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
secret_bytes = bytes.fromhex(secret)
|
secret_bytes = bytes.fromhex(secret)
|
||||||
except:
|
except ValueError:
|
||||||
try:
|
try:
|
||||||
secret_bytes = base64.b64decode(secret.encode())
|
secret_bytes = base64.b64decode(secret.encode())
|
||||||
except binascii.Error:
|
except binascii.Error:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user