Add basic updates processing to ignore updates with lower .pts

This commit is contained in:
Lonami Exo
2017-09-07 20:17:40 +02:00
parent d237375208
commit b8e881b6b6
3 changed files with 34 additions and 9 deletions

View File

@@ -51,7 +51,9 @@ class InteractiveTelegramClient(TelegramClient):
print('Initializing interactive example...')
super().__init__(
session_user_id, api_id, api_hash,
connection_mode=ConnectionMode.TCP_ABRIDGED, proxy=proxy
connection_mode=ConnectionMode.TCP_ABRIDGED,
enable_updates=True,
proxy=proxy
)
# Store all the found media in memory here,