mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 20:50:22 +03:00
Update v2-migration-guide.rst
This commit is contained in:
parent
34fc07b1fe
commit
768144fab4
|
@ -202,8 +202,8 @@ is decided by Telegram.
|
||||||
The ``telethon.errors`` module continues to provide custom errors used by the library such as
|
The ``telethon.errors`` module continues to provide custom errors used by the library such as
|
||||||
``TypeNotFoundError``.
|
``TypeNotFoundError``.
|
||||||
|
|
||||||
Errors are all now immutable - you can't modify them. This means the library will not correct
|
Errors are all now immutable - you can't modify them. This means the library will not patch
|
||||||
weird errors such as FLOOD_WAIT_0 (which was previously modified to FLOOD_WAIT_1). When the
|
errors such as FLOOD_WAIT_0 (which was previously modified to FLOOD_WAIT_1). When the
|
||||||
library does automatic flood sleeping, it will still make this correction, but if the
|
library does automatic flood sleeping, it will still make this correction, but if the
|
||||||
``flood_sleep_threshold`` is in the range [0,1) then you may get FLOOD_WAIT_0 raised to your
|
``flood_sleep_threshold`` is in the range [0,1) then you may get FLOOD_WAIT_0 raised to your
|
||||||
application code. This must be handled manually.
|
application code. This must be handled manually.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user