mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-20 12:06:37 +00:00
Wrap requests in InvokeWithoutUpdatesRequest if no event handlers
Closes #1270.
This commit is contained in:
parent
9285e50c63
commit
49713b2784
@ -51,6 +51,9 @@ class UserMethods:
|
|||||||
else:
|
else:
|
||||||
raise errors.FloodWaitError(request=r, capture=diff)
|
raise errors.FloodWaitError(request=r, capture=diff)
|
||||||
|
|
||||||
|
if not self._event_builders and not self._conversations:
|
||||||
|
r = functions.InvokeWithoutUpdatesRequest(r)
|
||||||
|
|
||||||
request_index = 0
|
request_index = 0
|
||||||
last_error = None
|
last_error = None
|
||||||
self._last_request = time.time()
|
self._last_request = time.time()
|
||||||
|
@ -135,7 +135,7 @@ class CallbackQuery(EventBuilder):
|
|||||||
The object returned by the ``data=`` parameter
|
The object returned by the ``data=`` parameter
|
||||||
when creating the event builder, if any. Similar
|
when creating the event builder, if any. Similar
|
||||||
to ``pattern_match`` for the new message event.
|
to ``pattern_match`` for the new message event.
|
||||||
|
|
||||||
pattern_match (`obj`, optional):
|
pattern_match (`obj`, optional):
|
||||||
Alias for ``data_match``.
|
Alias for ``data_match``.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user