mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-30 05:13:45 +03:00
Fix MessageContainer having the wrong constructor id
This commit is contained in:
parent
efca981312
commit
7b736aa6ef
|
@ -3,7 +3,7 @@ from ..extensions import BinaryWriter
|
||||||
|
|
||||||
|
|
||||||
class MessageContainer(TLObject):
|
class MessageContainer(TLObject):
|
||||||
constructor_id = 0x8953ad37
|
constructor_id = 0x73f1f8dc
|
||||||
|
|
||||||
# TODO Currently it's a bit of a hack, since the container actually holds
|
# TODO Currently it's a bit of a hack, since the container actually holds
|
||||||
# messages (message id, sequence number, request body), not requests.
|
# messages (message id, sequence number, request body), not requests.
|
||||||
|
@ -15,7 +15,7 @@ class MessageContainer(TLObject):
|
||||||
self.requests = requests
|
self.requests = requests
|
||||||
|
|
||||||
def on_send(self, writer):
|
def on_send(self, writer):
|
||||||
writer.write_int(0x73f1f8dc, signed=False)
|
writer.write_int(MessageContainer.constructor_id, signed=False)
|
||||||
writer.write_int(len(self.requests))
|
writer.write_int(len(self.requests))
|
||||||
for x in self.requests:
|
for x in self.requests:
|
||||||
x.request_msg_id = self.session.get_new_msg_id()
|
x.request_msg_id = self.session.get_new_msg_id()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user