mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Fix manual BadMessageError instantiation
This commit is contained in:
parent
6b280dc3bd
commit
b93b01cb02
|
@ -571,7 +571,8 @@ class MTProtoSender:
|
|||
self._state._sequence -= 16
|
||||
else:
|
||||
for state in states:
|
||||
state.future.set_exception(BadMessageError(bad_msg.error_code))
|
||||
state.future.set_exception(
|
||||
BadMessageError(state.request, bad_msg.error_code))
|
||||
return
|
||||
|
||||
# Messages are to be re-sent once we've corrected the issue
|
||||
|
|
Loading…
Reference in New Issue
Block a user