mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-04 05:34:41 +03: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:
|
||||
break
|
||||
|
||||
@abc.abstractmethod
|
||||
def _init_conn(self):
|
||||
"""
|
||||
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
|
||||
be used.
|
||||
"""
|
||||
raise NotImplemented
|
||||
|
||||
@abc.abstractmethod
|
||||
def _send(self, data):
|
||||
|
|
Loading…
Reference in New Issue
Block a user