mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Use signed longs for every request_id (#138 follow-up)
This commit is contained in:
parent
d58222d007
commit
a9a5c7e254
|
@ -309,7 +309,7 @@ class MtProtoSender:
|
||||||
def _handle_bad_msg_notification(self, msg_id, sequence, reader):
|
def _handle_bad_msg_notification(self, msg_id, sequence, reader):
|
||||||
self._logger.debug('Handling bad message notification')
|
self._logger.debug('Handling bad message notification')
|
||||||
reader.read_int(signed=False) # code
|
reader.read_int(signed=False) # code
|
||||||
reader.read_long(signed=False) # request_id
|
reader.read_long() # request_id
|
||||||
reader.read_int() # request_sequence
|
reader.read_int() # request_sequence
|
||||||
|
|
||||||
error_code = reader.read_int()
|
error_code = reader.read_int()
|
||||||
|
@ -328,7 +328,7 @@ class MtProtoSender:
|
||||||
def _handle_rpc_result(self, msg_id, sequence, reader):
|
def _handle_rpc_result(self, msg_id, sequence, reader):
|
||||||
self._logger.debug('Handling RPC result')
|
self._logger.debug('Handling RPC result')
|
||||||
reader.read_int(signed=False) # code
|
reader.read_int(signed=False) # code
|
||||||
request_id = reader.read_long(signed=False)
|
request_id = reader.read_long()
|
||||||
inner_code = reader.read_int(signed=False)
|
inner_code = reader.read_int(signed=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user