From d5bc3c1a6cfbb03729cf2e7318e17d405fb85902 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 14 Mar 2018 21:05:50 +0100 Subject: [PATCH] Fix misleading documentation regarding report_errors --- readthedocs/extra/developing/api-status.rst | 8 +++----- telethon/telegram_bare_client.py | 1 - telethon/telegram_client.py | 5 ++--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/readthedocs/extra/developing/api-status.rst b/readthedocs/extra/developing/api-status.rst index 492340a4..181ed3ae 100644 --- a/readthedocs/extra/developing/api-status.rst +++ b/readthedocs/extra/developing/api-status.rst @@ -10,11 +10,9 @@ anyone can query, made by `Daniil `__. All the information sent is a ``GET`` request with the error code, error message and method used. -If you still would like to opt out, simply set -``client.session.report_errors = False`` to disable this feature, or -pass ``report_errors=False`` as a named parameter when creating a -``TelegramClient`` instance. However Daniil would really thank you if -you helped him (and everyone) by keeping it on! +If you still would like to opt out, you can disable this feature by setting +``client.session.report_errors = False``. However Daniil would really thank +you if you helped him (and everyone) by keeping it on! Querying the API status *********************** diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py index 7164bb17..2ada33f5 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -73,7 +73,6 @@ class TelegramBareClient: update_workers=None, spawn_read_thread=False, timeout=timedelta(seconds=5), - loop=None, device_model=None, system_version=None, app_version=None, diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index c3f8ba72..642ecbf5 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -147,8 +147,8 @@ class TelegramClient(TelegramBareClient): if you want to run the library without any additional thread. Kwargs: - Extra parameters will be forwarded to the ``Session`` file. - Most relevant parameters are: + Some extra parameters are required when stabilishing the first + connection. These are are (along with their default values): .. code-block:: python @@ -157,7 +157,6 @@ class TelegramClient(TelegramBareClient): app_version = TelegramClient.__version__ lang_code = 'en' system_lang_code = lang_code - report_errors = True """ # region Initialization