mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Avoid counterintuitive automatic connection
This commit is contained in:
@@ -12,8 +12,13 @@ class MtProtoPlainSender:
|
||||
self._time_offset = 0
|
||||
self._last_msg_id = 0
|
||||
self._transport = transport
|
||||
|
||||
def connect(self):
|
||||
self._transport.connect()
|
||||
|
||||
def disconnect(self):
|
||||
self._transport.close()
|
||||
|
||||
def send(self, data):
|
||||
"""Sends a plain packet (auth_key_id = 0) containing the given message body (data)"""
|
||||
with BinaryWriter() as writer:
|
||||
|
Reference in New Issue
Block a user