mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix processing messages pending of acknowledge many times
This commit is contained in:
parent
ed77ba6f8f
commit
63dfb1e3ea
|
@ -174,6 +174,15 @@ class MtProtoSender:
|
|||
"""
|
||||
|
||||
# TODO Check salt, session_id and sequence_number
|
||||
if msg_id in self._need_confirmation:
|
||||
# We're yet to acknowledge this message already, so just drop it
|
||||
# as we are already aware of it. TODO Should we force acknowledging
|
||||
# all the self._need_confirmation IDs?
|
||||
self._logger.debug(
|
||||
'Ignoring message pending of acknowledge: {}'.format(msg_id)
|
||||
)
|
||||
return False
|
||||
|
||||
self._need_confirmation.append(msg_id)
|
||||
|
||||
code = reader.read_int(signed=False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user