Loading...
Loading...
Build, ship, and test Telegram bots on Telegram Serverless with V8 JS, SQLite sessions (sdk/db), interactive keyboards, and Telegram Stars (XTR). Use when building any Telegram bot on Telegram Serverless (tgcloud)—from a lightweight command bot to a multi-step conversational wizard, media handler, callback router, or Stars checkout flow.
npx skill4agent add rijans/agent-skills telegram-serverless-bottgcloudsdk/dbsdk/apisdk/fetchXTRtgcloud/handlers/<update_type>.jsapisdktgcloud.jsonctgcloud.json/start/helpsdk/dbweb_app: { url }tgcloud run handlers/<type>tgcloud difftgcloud migratetgcloud pushTelegram.WebApp.Serverless.calltgcloud.aiuse-telegram-serverlessgrammYTelegrafaiogrampackage.json@tgcloud/clitgcloud.jsonctgcloud.jsontgcloud/handlers/handlers/message.jshandlers/callback_query.jshandlers/pre_checkout_query.jstgcloud/schema.jstgcloud/lib/docs/tgcloud-sdk.md.tgcloud/TGCLOUD_TOKENBOT_TOKEN| # | Route / Task | Load Reference | Action Summary |
|---|---|---|---|
| 1 | Scaffold or setup bot project | commands-and-routing.md | Initialize |
| 2 | Build simple command bot ( | commands-and-routing.md | Create |
| 3 | Interactive keyboards & callback queries | keyboards-and-callbacks.md | Implement |
| 4 | Multi-step conversational wizard (FSM) | conversational-fsm.md | Design SQLite session schema ( |
| 5 | Telegram Stars ( | stars-payments.md | Implement |
| 6 | Media, photos & document uploads | media-and-files.md | Inspect media, download via |
| 7 | Link or launch a Telegram Mini App | keyboards-and-callbacks.md | Add |
| 8 | Test bot handlers in sandbox | testing-and-sandbox.md | Run |
| 9 | Deploy and sync webhooks | testing-and-sandbox.md | Run |
W011// Safe: Parameterized query builder
await db.select().from(users).where(eq(users.id, message.from.id)).get();sdk/fetchtgcloud/handlers/<update_type>.jshandlers/message.jshandlers/callback_query.jshandlers/pre_checkout_query.jsdefault async function (payload, ctx)payloadMessageCallbackQueryctx.updateapi.*snake_caseapi.sendMessage({ chat_id, text, ... })api.answerCallbackQuery({ callback_query_id, text })sdk/dbapi.answerCallbackQuery({ callback_query_id: query.id })pre_checkout_queryapi.answerPreCheckoutQuery({ pre_checkout_query_id: query.id, ok: true }).deprecated()tgcloud pushhandlers/message.jstgcloud/handlers/<type>.jstgcloud/schema.jstgcloud/lib/node --checknpx tgcloud run handlers/<type> '<payload>'npx tgcloud push