Getting started
Five short lessons. By the end you will have a running bot, you'll understand handlers and filters, you'll have built a stateful conversation, and you'll have a working production deployment recipe.
- Installation — composer require, PHP 8.5, ext-sodium.
- Your first bot —
BOT_TOKEN,runPolling, echo handler. - Handlers and filters —
Command,F-DSL, returning kwargs. - State — inline FSM (
FsmContext) without scenes. - Deployment — nginx + systemd from
deploy/.
Time budget: ~30 minutes end-to-end. Each lesson is self-contained and ends with a runnable example in examples/
.