mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00:00
Provide a blanket implementation for _init_conn
This commit is contained in:
parent
6de7329ce7
commit
abadf3c789
@ -173,7 +173,6 @@ class Connection(abc.ABC):
|
|||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
break
|
break
|
||||||
|
|
||||||
@abc.abstractmethod
|
|
||||||
def _init_conn(self):
|
def _init_conn(self):
|
||||||
"""
|
"""
|
||||||
This method will be called after `connect` is called.
|
This method will be called after `connect` is called.
|
||||||
@ -183,7 +182,6 @@ class Connection(abc.ABC):
|
|||||||
data to Telegram to indicate which connection mode will
|
data to Telegram to indicate which connection mode will
|
||||||
be used.
|
be used.
|
||||||
"""
|
"""
|
||||||
raise NotImplemented
|
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def _send(self, data):
|
def _send(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user