Rate limits
Every Bot API response includes rate-limit headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Total request allowance in the current window. |
X-RateLimit-Remaining | Remaining requests in the current window. |
X-RateLimit-Reset | Seconds until the current window resets. |
A request over a limit answers 429 with code: "RATE_LIMITED", a Retry-After header (in seconds), and { "error": "Çok hızlı gidiyorsun. Biraz bekleyip tekrar dene.", "code": "RATE_LIMITED", "retryAfter": <seconds>, "docs": "…" }. Wait Retry-After seconds before retrying; the official SDKs handle this automatically.
| What | Limit |
|---|---|
| All requests of one bot | 600 per minute (event polling, voice beats and drains included). |
| Sending messages | 15 per 10 seconds per bot. |
| Reactions | 60 per minute. |
| Voice signals | 600 per minute (mesh lodges only; LiveKit lodges have no signals). |
| Voice media tickets | 30 per minute. |
| File uploads | 10 per minute; a daily quota set in Yönetim → Dosyalar (uploads.dailyFiles / uploads.dailyMb from GET /me; 60 files and 2 GB by default). |
| Inline images | Daily cap shared with people's limit. |
| Wrong tokens | 30 per 10 minutes per IP address, then every request from it is 429. |
A typical bot uses well under the per-bot budget: events every 1.5 s is 40 a minute. A voice seat adds 12 beats a minute; in a mesh lodge also 30–120 drains, in a LiveKit lodge one /voice/media per (re)connection instead, and the sound itself goes to LiveKit, outside these limits.
Limits are per server process and can change; treat 429 and Retry-After as signals, not numbers to hard-code.