mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Ensure the state of the requests is clean before invoking them
This commit is contained in:
@@ -304,6 +304,10 @@ class TelegramBareClient:
|
||||
raise ValueError('You must be connected to invoke requests!')
|
||||
|
||||
try:
|
||||
# Ensure that we start with no previous errors (i.e. resending)
|
||||
request.confirm_received.clear()
|
||||
request.rpc_error = None
|
||||
|
||||
self._sender.send(request)
|
||||
if not call_receive:
|
||||
# TODO This will be slightly troublesome if we allow
|
||||
|
Reference in New Issue
Block a user