What FLOOD_WAIT means
Telegram limits how often you can repeat the same action. When you go over the limit, the server replies with error code 420 and the text FLOOD_WAIT_X, where X is a number of seconds. Telegram's documentation says it plainly: wait X seconds before you repeat the action.
In programs built on the Telethon library, the same error shows up as FloodWaitError with the text “A wait of X seconds is required”.
FLOOD_WAIT_3means wait 3 seconds;FLOOD_WAIT_600means 10 minutes;FLOOD_WAIT_86400means one day.
Why flood wait happens
- Many identical actions in a row: joining chats, searching by username, sending messages, requesting login codes.
- Retrying right after the error. A program that does not wait and tries again runs into the same limit.
- FLOOD_PREMIUM_WAIT_X is the same request to wait, but a Premium subscription removes this limit.
How long to wait
Exactly as long as the error says. The number at the end is seconds. It is usually seconds or minutes, but sometimes hours. If you have to wait for hours, the action was repeated too often and it is time to slow down.
You cannot shorten the wait. Every retry before it ends just hits the limit again.
What to do
- Stop this action for the stated time and do not repeat it sooner.
- Add pauses between identical actions: joins, searches, messages.
- If the error came during a code login, do not request the code again. Wait until the time is up.
- If flood wait keeps coming back, lower the number of actions per hour for the account.
Is FLOOD_WAIT a ban?
No. It is a temporary pause, and the action works again afterward. A penalty looks different: a PEER_FLOOD error, a spam block or an account freeze. If the account stopped messaging strangers along with the flood wait, check it in @SpamBot.
How TG Combine handles it
The service reads the wait time from the error, pauses the account for exactly that long, and then continues the task. Pauses between actions and hourly and daily caps for each account mean accounts run into flood wait less often to begin with.