Reference

Bot developer reference: limits, rate limits, libraries and cheat sheets

Numbers you look up again and again, in one place. Every factual row links to the official documentation it came from, with the date it was last checked.

All reference pages

Data

Platform limits

Message length, embeds, blocks, buttons, commands, file sizes and response deadlines for eight platforms, each with a source link.

Data

API rate limits

Published sending and request limits per platform, with notes on bursts, buckets and how each API signals a 429.

Libraries

Frameworks and libraries

Maintained libraries for Telegram, Discord, Slack, Matrix, multi-platform and LLM bots, with language and license.

Telegram

Telegram cheat sheet

Core methods, update types, formatting, keyboards, webhooks and the errors you will meet most often.

Discord

Discord cheat sheet

Gateway intents, interactions, response types, components, permissions and rate limit headers on one page.

Slack

Slack cheat sheet

Token types, Socket Mode versus HTTP, request signing, mrkdwn, common scopes and errors.

WhatsApp

WhatsApp cheat sheet

Endpoints, webhook verification, message types, the 24 hour window, templates and status updates.

Code

Starter code templates

Minimal, working starting points with signature checks and clean shutdown. Copy or download each file.

Data

Webhook headers

A quick index of signature headers used by major bot platforms.

Discord

Gateway close codes

Selected Discord Gateway close codes with recovery hints.

Data

Cron examples

Copy-paste 5-field cron expressions commonly used for bot jobs.

Data

Env var cheatsheet

Names you will see in templates: tokens, secrets, ports and database URLs.

DevOps

SIGTERM cheat sheet

What to close when the orchestrator stops your process.

Reliability

HTTP retry matrix

Which status codes are typically safe to retry.

Discord

Intent bit values

Common intents and their bit numbers for calculate/debug.

Telegram

Telegram Update types

Fields you will switch on in a webhook handler.

Slack

Slack event types

Frequent event types for Bolt listeners.

Data

Env naming

Consistent names across templates and hosts.

DevOps

Log field conventions

Structured fields that make incidents searchable.

Hosting

Ports cheat sheet

What usually listens where on a bot VPS.

Telegram

secret_token header

Header name and operational notes for Telegram secret_token.

Discord

Interaction deadlines

Rough deadlines to plan ACK vs defer.

Slack

Slack signing basics

Headers and compare steps for Slack request signatures.

Webhooks

Webhook HTTP statuses

What to return so platforms retry or stop appropriately.

DevOps

Shutdown order

Recommended sequence on SIGTERM.

Architecture

Idempotency keys

Common key shapes that prevent double side effects.

Telegram

parse_mode cheat sheet

HTML vs MarkdownV2 practical notes.

DevOps

Probe timings

Starting points — tune to your cold start and shutdown grace.

Telegram

BotCommandScope values

Common scopes for setMyCommands.

Discord

Common Discord permission names

Frequent flags for invites.

Slack

Common Slack bot scopes

Scopes for Bolt starters.

Webhooks

HTTP methods for chat webhooks

Typical verbs by platform.

Telegram

HTML parse_mode escapes

Escape less-than greater-than and amp.

Discord

Privileged intents list

Portal toggles required.

Slack

Slack retry headers

Retry attempt metadata.

WhatsApp

Inbound WhatsApp message types

messages type values.

Security

Registered JWT claims

iss sub exp iat.

Data

Postgres isolation levels

Choose carefully for queues.

Data

Redis key patterns for bots

Namespacing suggestions.

DevOps

Suggested OTel span names

Keep cardinality low.

AI

Chat completion finish reasons

Interpret provider fields carefully.

DevOps

Cron special strings

When scheduler supports them.

DevOps

Docker stop signals

SIGTERM then SIGKILL.

Hosting

TLS versions for webhooks

Prefer 1.2+.

Webhooks

Webhook Content-Type values

Typical inbound types.

Data

Base64 vs Base64URL

JWT uses Base64URL.

Data

UUID versions

v4 random; v7 time-ordered.

DevOps

SemVer for bot releases

Bump major on breaking chat contracts.

DevOps

Log levels for bots

info success; warn retries; error failures.

Architecture

Job queue states

pending leased done dead.

Telegram

update_id idempotency

Use update_id as key.

Discord

Snowflake bit layout

timestamp worker process increment.

Reliability

ACK deadlines summary

Slack/Discord about 3s; ACK before LLM.

DevOps

healthz vs readyz

Liveness vs readiness.

Reliability

Circuit breaker states

closed open half-open.

Security

Cookie flags for dashboards

Secure HttpOnly SameSite.

Reliability

Status page states

operational degraded outage maintenance.

Hosting

DNS types for bots

A/AAAA CNAME TXT.

Security

Authn vs authz

Identity vs permission.

Privacy

PII categories bots touch

Ids content secrets.

Data

3-2-1 backup reminder

Three copies two media one offsite.

Reliability

Rate limit algorithms

fixed sliding token bucket.

AI

Vector metadata fields

tenant_id source_id acl.

Matrix

Matrix client event types

m.room.message and state.

Telegram

callback_data size reminder

Keep tiny; server-side state by ref.

Discord

Component count reminder

Respect docs limits.

Slack

Block Kit limits reminder

Validate before publish.

Security

PKCE summary

code_verifier and challenge.

Data

Chat id storage types

Store as text not float.

Architecture

Worker concurrency knobs

Cap webhook vs LLM separately.

DevOps

Truthy env parsing

Document exact true/1/yes.

Webhooks

Idempotent HTTP methods

POST often needs keys.

Reliability

Error budget policy sketch

Spent budget slows launches.

DevOps

Verify template ZIP checksums

sha256sum -c the sha256 file.

Security

Leaked token response

Revoke or rotate immediately.

WhatsApp

Graph API version pinning

Pin GRAPH_VERSION in config.

Hosting

CDN vs webhook POSTs

Do not cache POST webhooks.

DevOps

MIT license for site templates

Templates ship MIT with LICENSE.

Slack

Events API vs Socket Mode

HTTP vs WebSocket tradeoffs.

Discord

Interaction type numbers

Common type values.

Telegram

Telegram chat.type values

private group supergroup channel.

Webhooks

JSON Content-Type variants

Prefer application/json.

Hosting

/go affiliate link behavior

Minimal logging per privacy.

Reliability

Safe methods to retry

Retry GET carefully; POST if idempotent.

How this data is maintained

Platforms change limits without much notice. Each table shows a "last checked" date and a source link per row; treat the official page as the authority and handle errors such as HTTP 429 or "message too long" in code rather than relying on hard-coded numbers alone.

Spotted something outdated? The changelog lists every update. Changelog