Ensure that message ids are signed once again

This commit is contained in:
Lonami Exo 2017-06-27 18:45:52 +02:00
parent 0cfbf63eaf
commit 83c8e98448

View File

@ -257,7 +257,7 @@ class MtProtoSender:
def _handle_pong(self, msg_id, sequence, reader): def _handle_pong(self, msg_id, sequence, reader):
self._logger.debug('Handling pong') self._logger.debug('Handling pong')
reader.read_int(signed=False) # code reader.read_int(signed=False) # code
received_msg_id = reader.read_long(signed=False) received_msg_id = reader.read_long()
try: try:
request = next(r for r in self._pending_receive request = next(r for r in self._pending_receive
@ -274,7 +274,7 @@ class MtProtoSender:
reader.read_int(signed=False) # code reader.read_int(signed=False) # code
size = reader.read_int() size = reader.read_int()
for _ in range(size): for _ in range(size):
inner_msg_id = reader.read_long(signed=False) inner_msg_id = reader.read_long()
reader.read_int() # inner_sequence reader.read_int() # inner_sequence
inner_length = reader.read_int() inner_length = reader.read_int()
begin_position = reader.tell_position() begin_position = reader.tell_position()
@ -290,7 +290,7 @@ class MtProtoSender:
def _handle_bad_server_salt(self, msg_id, sequence, reader): def _handle_bad_server_salt(self, msg_id, sequence, reader):
self._logger.debug('Handling bad server salt') self._logger.debug('Handling bad server salt')
reader.read_int(signed=False) # code reader.read_int(signed=False) # code
bad_msg_id = reader.read_long(signed=False) bad_msg_id = reader.read_long()
reader.read_int() # bad_msg_seq_no reader.read_int() # bad_msg_seq_no
reader.read_int() # error_code reader.read_int() # error_code
new_salt = reader.read_long(signed=False) new_salt = reader.read_long(signed=False)