recover_gaps()

Client.recover_gaps()

Restores updates for the time while the client was offline.

Note

To use this method, you must set the Client.skip_updates parameter to False, otherwise updates state saving and recovery will not work.

Usable by Users Bots
Returns:

tuple – The number of messages and updates recovered is returned.