Telethon/requests/ack_request.py
Lonami 1dac866118 Initial release
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.
2016-08-26 12:58:53 +02:00

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