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
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
***********************

View File

@ -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,

View File

@ -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