recover_gaps()¶
- Client.recover_gaps()¶
Restores updates for the time while the client was offline.
Usable by Users BotsNote
To use this method, you must set the
Client.skip_updatesandClient.in_memoryparameter to False, otherwise updates state saving and recovery will not work.- Returns:
tuple– The number of messages and updates recovered is returned.