Bring back report_errors to the constructor

This commit is contained in:
Lonami Exo
2018-03-15 10:22:21 +01:00
parent 3b42bc9991
commit 1e3120b0b6
3 changed files with 11 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ class TelegramBareClient:
update_workers=None,
spawn_read_thread=False,
timeout=timedelta(seconds=5),
report_errors=True,
device_model=None,
system_version=None,
app_version=None,
@@ -103,6 +104,7 @@ class TelegramBareClient:
DEFAULT_PORT
)
session.report_errors = report_errors
self.session = session
self.api_id = int(api_id)
self.api_hash = api_hash