Loading...
Loading...
Build, ship, and scale simple or full-stack Telegram bots and Mini Apps on Telegram Serverless with V8 JS, SQLite (sdk/db), Mini App RPC, and tgcloud. Use for any Telegram Serverless project—from a single-file bot handler to a stateful Mini App with tgcloud.jsonc static hosting, SQLite migrations (tgcloud migrate), sdk/api, sdk/fetch, Telegram.WebApp.Serverless.call, or Telegram Stars (XTR) payments.
npx skill4agent add rijans/agent-skills use-telegram-serverlesstgcloudsdk/dbsdk/apisdk/fetchTelegram.WebApp.Serverless.calltgcloud.aitgcloud@tgcloud/cli@tgcloud/bottgcloud/tgcloud.jsonctgcloud/handlers/*.jstgcloud/endpoints/*.jstgcloud/lib/**/*.jstgcloud/schema.jshttps://app<app_id>.tgcloud.ai//startsdk/fetchXTRsendMessageDraftTelegram.WebApp.Serverless.calltgcloud migratetgcloud runtgcloud pushgrammYTelegrafaiogramtgcloud.jsoncAGENTS.mdCLAUDE.mdGEMINI.mddocs/tgcloud-sdk.mddocs/tgcloud-sdk.md@tgcloud/clipackage.json@tgcloud/clitgcloud.jsonctgcloud.jsontgcloud/schema.jstgcloud/handlers/tgcloud/endpoints/tgcloud/lib/git statusgit diff.tgcloud/TGCLOUD_TOKEN| Route | Outcome | Primary Reference (Read First) | Conditional Reference (Read Only If Needed) |
|---|---|---|---|
| 1. Explain, Audit, or Review | Explain behavior or report concrete code/security/migration findings without modifying state | Relevant domain reference | Debugging & Audit Playbook (for audits) |
| 2. Set Up, Scaffold, or Link | Create a project ( | Setup & Auth | — |
| 3. Build or Modify a Bot | Author simple or stateful update handlers ( | Runtime & SDK | Database (if stateful), Patterns & Recipes (only for wizards, payments, callbacks, drafts, or inline) |
| 4. Build or Modify a Mini App | Configure static frontend hosting ( | Mini Apps | Patterns & Recipes (for Promise RPC wrapper / RBAC), Database (if querying DB) |
| 5. Design or Evolve Database | Author | Database & Migrations | — |
| 6. Validate & Test | Run offline checks (syntax, layout, ownership, mocks) or authorized remote execution ( | Operations | Debugging & Audit Playbook (if tests fail) |
| 7. Deploy Changes | Build static assets (if applicable) and publish reviewed modules/assets via targeted or full | Operations | Mini Apps (if static hosting is configured) |
| 8. Diagnose, Sync, or Upgrade | Troubleshoot failures, resolve local/cloud divergence, sync webhooks, or run | Debugging & Audit Playbook, Operations | Setup (for auth or legacy layout issues) |
| 9. End-to-End Full-Stack Build | Sequence Database Schema $\rightarrow$ Shared | Database, Runtime & SDK, Mini Apps | Patterns & Recipes (only for advanced recipes used) |
package.jsontgcloud/tgcloud.jsoncgit statusendpoints/.deprecated()process.envdocs/tgcloud-sdk.mdnode_modules/@tgcloud/cli/schema/tgcloud.json@tgcloud/cli@tgcloud/cli0.2.0tgcloud/lib/tgcloud/handlers/message.jstgcloud/handlers/tgcloud/schema.jsrunpushmigratetgcloud/.js../schema.js../lib/util.jssdksdk/dbsdk/apisdk/fetchmigrategit difftgcloud diffnode --checktgcloud runtgcloud pushtgcloud migratetgcloud webhook synctgcloud pulltgcloud runtgcloud pushtgcloud migratetgcloud runnpx tgcloud runtgcloud/--ctxinitDatapushmigraterunwebhook synctgcloud pushtgcloud/npx tgcloud push <module...>tgcloud pulltgcloud resettgcloud upgradepush --forceresetwebhook sync --drop-pendingapp<id>:<secret>@BotFathertgcloud/npx tgcloud loginTGCLOUD_TOKENtgcloud/endpoints/<name>.jsctx.initData.user.iduserIdinputWebApp.initDataUnsafeSELECTUPDATEDELETEand(eq(items.id, input.id), eq(items.userId, ctx.initData.user.id))fspathBufferprocess.envcryptoglobalThis.cryptonode_modulessdk.secrets.references()inputuse-telegram-serverlesshumanize-text/startEndpointErrortgcloud/endpoints/Telegram.WebApp.Serverless.callvar(--tg-theme-bg-color)MainButtonBackButtonHapticFeedbacksendMessageDraftnpm create @tgcloud/bottgcloud initaddloginTGCLOUD_TOKENupgradehandlers/<update_type>.jsapi.<method>BotApiErrorInputFileUint8ArraygetFileContentgetFileStreamfetchFormDatasdk/dbtablemigrate--dry-run--local--safe--yes.deprecated()endpoints/<name>.jsctx.initDataEndpointErrorTelegram.WebApp.Serverless.calltgcloud.jsoncsourcespaimmutableheadersredirectsstatusdifffetchrunpushmigratepullresetwebhookupgradecore.telegram.org/bots/serverlesstgcloud runNot runtgcloud pushhttps://app<app_id>.tgcloud.ai/Not runtgcloud migrateNot runapp<id>.jsdbctx.initData.user.idtgcloud migratenpxpush --forceresettgcloud fetchtgcloud diff