Merge pull request #1 from Andrebcd4/patch-2

Update docs
This commit is contained in:
Andrebcd4 2019-09-24 01:07:43 +03:00 committed by GitHub
commit 582d8ec588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class TelegramBaseClient(abc.ABC):
flood_sleep_threshold (`int` | `float`, optional): flood_sleep_threshold (`int` | `float`, optional):
The threshold below which the library should automatically The threshold below which the library should automatically
sleep on flood wait errors (inclusive). For instance, if a sleep on flood wait and slowmode wait errors (inclusive). For instance, if a
``FloodWaitError`` for 17s occurs and `flood_sleep_threshold` ``FloodWaitError`` for 17s occurs and `flood_sleep_threshold`
is 20s, the library will ``sleep`` automatically. If the error is 20s, the library will ``sleep`` automatically. If the error
was for 21s, it would ``raise FloodWaitError`` instead. Values was for 21s, it would ``raise FloodWaitError`` instead. Values

View File

@ -82,7 +82,7 @@ class UserMethods:
e.__class__.__name__, e) e.__class__.__name__, e)
await asyncio.sleep(2) await asyncio.sleep(2)
except (errors.FloodWaitError, errors.FloodTestPhoneWaitError) as e: except (errors.FloodWaitError, errors.SlowmodeWaitError, errors.FloodTestPhoneWaitError) as e:
if utils.is_list_like(request): if utils.is_list_like(request):
request = request[request_index] request = request[request_index]