Every Telegram feature requires the user to link their Telegram account to a Humain account
first, from the admin panel (Account → Linked accounts) or via
/start in the bot. There
is no in-bot signup — an unlinked Telegram account gets a “Connect Telegram Account” prompt
instead of a response.Choose your integration
Telegram bot
Manage kiosks, devices, and sessions with slash commands. Connect a group chat to a kiosk
so mentioning the bot triggers a full AI conversation turn.
Mini App
A full Next.js workspace app running inside Telegram’s WebView — dashboards, kiosk and
device management, session history, and billing.
Business connections
Bind a kiosk to your personal Telegram account via Business Mode so the AI answers your
customer DMs and channel messages on your behalf.
Stars payments
Sell plan subscriptions and PAYG credit bundles with Telegram Stars — no external payment
provider required.
Architecture
Two separate processes serve Telegram traffic:The bot is webhook-only — there is no long-polling fallback.
cmd/telegram registers the
webhook at startup using TELEGRAM_WEBHOOK_URL and validates every incoming request against
TELEGRAM_WEBHOOK_SECRET via the X-Telegram-Bot-Api-Secret-Token header.TurnPipeline used by physical
devices — the same guardrails, knowledge retrieval, persona resolution, and tool-calling apply.
See Session lifecycle for the underlying pipeline.
Configuration reference
All Telegram environment variables are read once, inconfig/config.go.
See each sub-page for the BotFather setup steps specific to that feature (Web Login domain,
Mini App short names, Business Mode).
Deployment
kiosk-infra’s Docker Compose defines two services: telegram (the bot, from
kiosk-backend/Dockerfile.telegram) and miniapp (the Next.js Mini App, from
kiosk-miniapp/Dockerfile). Both are disabled in the local dev override — run them on the host
instead (air -c telegram.air.toml for the bot, npm run dev in kiosk-miniapp for the app).