mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Fix misleading documentation regarding report_errors
This commit is contained in:
parent
1ff5826c26
commit
d5bc3c1a6c
|
@ -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
|
||||||
***********************
|
***********************
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user