Add support for Telethon's catch_up() (ref #124)

This commit is contained in:
Tulir Asokan
2018-05-13 11:22:20 +03:00
parent fd763b953d
commit 79341b8d28
5 changed files with 13 additions and 1 deletions
+2
View File
@@ -150,6 +150,8 @@ class User(AbstractUser):
await self.update_info(info)
await self.sync_dialogs()
await self.sync_contacts()
if config["bridge.catch_up"]:
await self.client.catch_up()
except Exception:
self.log.exception("Failed to run post-login functions")