Docs

Bot limits

Every limit on bots, commands, buttons, updates and ephemeral messages.

Bots

WhatHow much
Bots per person20, the federation may change it (policy)
Username3–32 characters, ends in bot
Description / "About" line512 / 120 characters
Request body1 MiB
Sending, editing and deleting rate30 at once, then 5 per second

Updates

WhatHow much
Keeping updates24 hours, at most 100,000 per bot
getUpdates: limit / timeout1–100 / 0–50 seconds
Webhook secret16–256 characters
Waiting for a webhook answer10 seconds
Pause between webhook retriesgrows up to 1 minute

Messages

WhatHow much
Text32,768 characters
Blocks in a document256
Whole document512 KiB
Deleting at once100 messages
idempotency_key1–128 characters

Commands

WhatHow much
Commands in one scope100, together up to 64 KiB
Scopes with commands64
Command description256 characters
Options per command10
Choices per option, suggestions per answer25
Choice name100 characters
Text option, max_length1024 characters
Answering a suggestion query3 seconds
Command invocation text4096 characters

Buttons

WhatHow much
Rows / buttons per row / buttons per message8 / 8 / 32
Button label64 characters
callback_data64 bytes
copy_text256 characters
Answering a press10 seconds
Press answer text200 characters

Ephemeral messages

WhatHow much
How long an interaction waits15 minutes
Lifetime24 hours
Live ones of one bot for one person20, a new one deletes the oldest

Personal bots

WhatHow much
Answer window after the other person's last message24 hours
People in an "only" or "except" list100

On this page