mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-19 21:11:06 +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
|
self._state._sequence -= 16
|
||||||
else:
|
else:
|
||||||
for state in states:
|
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
|
return
|
||||||
|
|
||||||
# Messages are to be re-sent once we've corrected the issue
|
# Messages are to be re-sent once we've corrected the issue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user