2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-09 10:45:31 +00:00

Add takeout parameter in Client

This lets the client use a takeout session instead of a normal one.
Takeout sessions are useful for exporting Telegram data. Methods invoked
inside a takeout session are less prone to throw FloodWait exceptions.
This commit is contained in:
Dan
2019-01-03 12:20:42 +01:00
parent 7c008ca4e3
commit 4f6990d735
2 changed files with 23 additions and 1 deletions

View File

@@ -90,6 +90,8 @@ class BaseClient:
self.is_started = None
self.is_idle = None
self.takeout_id = None
self.updates_queue = Queue()
self.updates_workers_list = []
self.download_queue = Queue()