Bot limits
Every limit on bots, commands, buttons, updates and ephemeral messages.
Bots
| What | How much |
|---|---|
| Bots per person | 20, the federation may change it (policy) |
| Username | 3–32 characters, ends in bot |
| Description / "About" line | 512 / 120 characters |
| Request body | 1 MiB |
| Sending, editing and deleting rate | 30 at once, then 5 per second |
Updates
| What | How much |
|---|---|
| Keeping updates | 24 hours, at most 100,000 per bot |
getUpdates: limit / timeout | 1–100 / 0–50 seconds |
| Webhook secret | 16–256 characters |
| Waiting for a webhook answer | 10 seconds |
| Pause between webhook retries | grows up to 1 minute |
Messages
| What | How much |
|---|---|
| Text | 32,768 characters |
| Blocks in a document | 256 |
| Whole document | 512 KiB |
| Deleting at once | 100 messages |
idempotency_key | 1–128 characters |
Commands
| What | How much |
|---|---|
| Commands in one scope | 100, together up to 64 KiB |
| Scopes with commands | 64 |
| Command description | 256 characters |
| Options per command | 10 |
| Choices per option, suggestions per answer | 25 |
| Choice name | 100 characters |
Text option, max_length | 1024 characters |
| Answering a suggestion query | 3 seconds |
| Command invocation text | 4096 characters |
Buttons
| What | How much |
|---|---|
| Rows / buttons per row / buttons per message | 8 / 8 / 32 |
| Button label | 64 characters |
callback_data | 64 bytes |
copy_text | 256 characters |
| Answering a press | 10 seconds |
| Press answer text | 200 characters |
Ephemeral messages
| What | How much |
|---|---|
| How long an interaction waits | 15 minutes |
| Lifetime | 24 hours |
| Live ones of one bot for one person | 20, a new one deletes the oldest |
Personal bots
| What | How much |
|---|---|
| Answer window after the other person's last message | 24 hours |
| People in an "only" or "except" list | 100 |