mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
1dac866118
The initial release contains the most basic implementation of TLSharp core. This is also fully untested, since no test can be done until more work is done.
21 lines
525 B
Python
21 lines
525 B
Python
from requests.mtproto_request import MTProtoRequest
|
|
|
|
|
|
class AckRequest(MTProtoRequest):
|
|
def __init__(self, msgs):
|
|
super().__init__()
|
|
self.msgs = msgs
|
|
|
|
def on_send(self, writer):
|
|
writer.write_int(0x62d6b459) # msgs_ack
|
|
writer.write_int(0x1cb5c415) # vector
|
|
writer.write_int(len(self.msgs))
|
|
for msg_id in self.msgs:
|
|
writer.write_int(msg_id, signed=False)
|
|
|
|
def on_response(self, reader):
|
|
pass
|
|
|
|
def on_exception(self, exception):
|
|
pass
|