Skip to content

Commit 441b89a

Browse files
committed
Add FAQs about Flood limits and sqlite3.OperationalError
1 parent 0681ea7 commit 441b89a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/source/faq.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ your system or find and kill the process that is locking the database. On Unix b
334334
If you want to run multiple clients on the same account, you must authorize your account (either user or bot)
335335
from the beginning every time, and use different session names for each parallel client you are going to use.
336336

337+
sqlite3.OperationalError: unable to open database file
338+
------------------------------------------------------
339+
340+
Stackoverflow to the rescue: https://stackoverflow.com/questions/4636970
341+
337342
My verification code expires immediately!
338343
-----------------------------------------
339344

@@ -343,6 +348,25 @@ messages you send and if an active verification code is found it will immediatel
343348
The reason behind this is to protect unaware users from giving their account access to any potential scammer, but if you
344349
legitimately want to share your account(s) verification codes, consider scrambling them, e.g. ``12345`` → ``1-2-3-4-5``.
345350

351+
How can avoid Flood Waits?
352+
--------------------------
353+
354+
Long story short: make less requests, and remember that the API is designed to be used by official apps, by real people;
355+
anything above normal usage could be limited.
356+
357+
This question is being asked quite a lot of times, but the bottom line is that nobody knows the exact limits and it's
358+
unlikely that such information will be ever disclosed, because otherwise people could easily circumvent them and defeat
359+
their whole purpose.
360+
361+
Do also note that Telegram wants to be a safe and reliable place and that limits exist to protect itself from abuses.
362+
Having said that, here's some insights about limits:
363+
364+
- They are tuned by Telegram based on real people usage and can change anytime.
365+
- Some limits are be applied to single sessions, some others apply to the whole account.
366+
- Limits vary based on methods and the arguments passed to methods. For example: log-ins are expensive and thus have
367+
stricter limits; replying to a user command could cause a flood wait in case the user starts flooding, but
368+
such limit will only be applied to that particular chat (i.e.: other users are not affected).
369+
346370
My account has been deactivated/limited!
347371
----------------------------------------
348372

0 commit comments

Comments
 (0)