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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user