How it compares
| Telegram | AgentFlow |
|---|---|
@BotFather → /newbot | POST /api/v1/bots |
BOT:TOKEN | af_bot_<hex> |
api.telegram.org/bot.../sendMessage | bots.agentflow.website/api/v1/sendMessage |
setWebhook / getUpdates | same names, same shape |
| Mini Apps | Matrix Widget API + our @agentflowx/miniapp SDK |
| Telegram Games | /api/v1/games/* |
Quick start (60 seconds)
SDKs
- TypeScript:
@agentflowx/bot-sdkon npm - Python:
agentflowx-bot-sdkon PyPI (v0.1 skeleton) - REST: anything that speaks HTTP — see API Reference
Examples (open source on GitHub)
- bot-example-echo — 30-line Hello World
- game-coinflip — full game with provably-fair RNG
- game-template — fork-me starter
Where bots live
Bots run on the chat.agentflow.website Matrix homeserver. Each provisioned bot gets:- A reserved Matrix user id
@bot_<slug>:agentflow.website - Its own
access_token(managed by the platform, never exposed to you) - A bot token (
af_bot_<hex>) for the REST API - Optional webhook URL for event delivery
Next steps
Quickstart
Full step-by-step — bot replies in your Matrix room in 5 minutes.
API Reference
Every endpoint, every header, every error.
TypeScript SDK
npm install @agentflowx/bot-sdk — recommended starting point.Build a game
Walk-through of
game-coinflip — commit-reveal RNG, pro-rata payouts.