Describe FloodWaitError better.

Lonami 2017-12-14 18:02:30 +01:00
parent 27503ec6b1
commit a6e1e53c39

@ -1,6 +1,6 @@
RPC stands for Remote Procedure Call, and when Telethon raises an `RPCError`, it's most likely because you have invoked some of the API methods incorrectly (wrong parameters, wrong permissions, or even something went wrong on Telegram's server). The most common are: RPC stands for Remote Procedure Call, and when Telethon raises an `RPCError`, it's most likely because you have invoked some of the API methods incorrectly (wrong parameters, wrong permissions, or even something went wrong on Telegram's server). The most common are:
* `FloodError` (420), the same request was repeated many times. Must wait `.seconds`. * `FloodError` (420), the same request was repeated many times. Must wait `.seconds`. When a `FloodWaitError` occurs, it means that you've executed the same query with the same parameters many times in a short period of time (or even with different parameters in a longer period of time). You need to wait. Telegram is basically telling you to slow down for a bit, not to abuse the API.
* `SessionPasswordNeededError`, if you have setup two-steps verification on Telegram. * `SessionPasswordNeededError`, if you have setup two-steps verification on Telegram.
* `CdnFileTamperedError`, if the media you were trying to download from a CDN has been altered. * `CdnFileTamperedError`, if the media you were trying to download from a CDN has been altered.
* `ChatAdminRequiredError`, you don't have permissions to perform said operation on a chat or channel. Try avoiding filters, i.e. when searching messages. * `ChatAdminRequiredError`, you don't have permissions to perform said operation on a chat or channel. Try avoiding filters, i.e. when searching messages.