mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 11:32:30 +00:00
Wrap init request in invokeWithoutUpdates if requested
This may fix #3743.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user