Wrap init request in invokeWithoutUpdates if requested

This may fix #3743.
This commit is contained in:
Lonami Exo 2023-01-14 13:31:32 +01:00
parent d81eb0b2e8
commit cc3d25eeb8

View File

@ -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()