mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-01 02:39:54 +03:00
Update tcpmtproxy.py
This commit is contained in:
parent
4fd7962414
commit
9fc03647c9
|
@ -139,7 +139,7 @@ class TcpMTProxy(ObfuscatedConnection):
|
||||||
try:
|
try:
|
||||||
secret_bytes = bytes.fromhex(secret)
|
secret_bytes = bytes.fromhex(secret)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
secret = secret + '=' * (-len(s) % 4)
|
secret = secret + '=' * (-len(secret) % 4)
|
||||||
secret_bytes = base64.b64decode(secret.encode())
|
secret_bytes = base64.b64decode(secret.encode())
|
||||||
|
|
||||||
return secret_bytes[:16] # Remove the domain from the secret (until domain support is added)
|
return secret_bytes[:16] # Remove the domain from the secret (until domain support is added)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user