Wrap requests in InvokeWithoutUpdatesRequest if no event handlers

Closes #1270.
This commit is contained in:
Lonami Exo 2021-08-22 13:38:54 +02:00
parent 9285e50c63
commit 49713b2784
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,9 @@ class UserMethods:
else:
raise errors.FloodWaitError(request=r, capture=diff)
if not self._event_builders and not self._conversations:
r = functions.InvokeWithoutUpdatesRequest(r)
request_index = 0
last_error = None
self._last_request = time.time()