mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Wrap init request in invokeWithoutUpdates if requested
This may fix #3743.
This commit is contained in:
parent
d81eb0b2e8
commit
cc3d25eeb8
|
@ -559,9 +559,11 @@ class TelegramBaseClient(abc.ABC):
|
|||
|
||||
self._init_request.query = functions.help.GetConfigRequest()
|
||||
|
||||
await self._sender.send(functions.InvokeWithLayerRequest(
|
||||
LAYER, self._init_request
|
||||
))
|
||||
req = self._init_request
|
||||
if self._no_updates:
|
||||
req = functions.InvokeWithoutUpdatesRequest(req)
|
||||
|
||||
await self._sender.send(functions.InvokeWithLayerRequest(LAYER, req))
|
||||
|
||||
if self._message_box.is_empty():
|
||||
me = await self.get_me()
|
||||
|
|
Loading…
Reference in New Issue
Block a user