mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Initial implementation of MTProxy support (#1107)
This commit is contained in:

committed by
Lonami

parent
45fdd098cc
commit
45d0ba9e2f
@@ -10,8 +10,9 @@ class ConnectionTcpFull(Connection):
|
||||
Default Telegram mode. Sends 12 additional bytes and
|
||||
needs to calculate the CRC value of the packet itself.
|
||||
"""
|
||||
def __init__(self, ip, port, *, loop, loggers, proxy=None):
|
||||
super().__init__(ip, port, loop=loop, loggers=loggers, proxy=proxy)
|
||||
def __init__(self, ip, port, dc_id, *, loop, loggers, proxy=None):
|
||||
super().__init__(
|
||||
ip, port, dc_id, loop=loop, loggers=loggers, proxy=proxy)
|
||||
self._send_counter = 0
|
||||
|
||||
async def connect(self, timeout=None, ssl=None):
|
||||
|
Reference in New Issue
Block a user