Fix misleading documentation regarding report_errors

This commit is contained in:
Lonami Exo 2018-03-14 21:05:50 +01:00
parent 1ff5826c26
commit d5bc3c1a6c
3 changed files with 5 additions and 9 deletions

View File

@ -10,11 +10,9 @@ anyone can query, made by `Daniil <https://github.com/danog>`__. All the
information sent is a ``GET`` request with the error code, error message information sent is a ``GET`` request with the error code, error message
and method used. and method used.
If you still would like to opt out, simply set If you still would like to opt out, you can disable this feature by setting
``client.session.report_errors = False`` to disable this feature, or ``client.session.report_errors = False``. However Daniil would really thank
pass ``report_errors=False`` as a named parameter when creating a you if you helped him (and everyone) by keeping it on!
``TelegramClient`` instance. However Daniil would really thank you if
you helped him (and everyone) by keeping it on!
Querying the API status Querying the API status
*********************** ***********************

View File

@ -73,7 +73,6 @@ class TelegramBareClient:
update_workers=None, update_workers=None,
spawn_read_thread=False, spawn_read_thread=False,
timeout=timedelta(seconds=5), timeout=timedelta(seconds=5),
loop=None,
device_model=None, device_model=None,
system_version=None, system_version=None,
app_version=None, app_version=None,

View File

@ -147,8 +147,8 @@ class TelegramClient(TelegramBareClient):
if you want to run the library without any additional thread. if you want to run the library without any additional thread.
Kwargs: Kwargs:
Extra parameters will be forwarded to the ``Session`` file. Some extra parameters are required when stabilishing the first
Most relevant parameters are: connection. These are are (along with their default values):
.. code-block:: python .. code-block:: python
@ -157,7 +157,6 @@ class TelegramClient(TelegramBareClient):
app_version = TelegramClient.__version__ app_version = TelegramClient.__version__
lang_code = 'en' lang_code = 'en'
system_lang_code = lang_code system_lang_code = lang_code
report_errors = True
""" """
# region Initialization # region Initialization