telegram-serverless
Skill8 starsChanged 3 months agoApache-2.0View on GitHub
Build, review, deploy, and troubleshoot bots and Mini Apps on Telegram Serverless using tgcloud, its JavaScript SDK, and built-in database. Use when working on Telegram-hosted projects, handlers, endpoints, schema changes, or tgcloud operations; not generic Telegram bots hosted elsewhere or unrelated serverless platforms.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- reza10men/telegram-rich-messagestheir own version, first seen Nov 8, 2026
- yousifraad01/Telegram-Serverless-Skilltheir own version, first seen Sep 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- reza10men/telegram-rich-messages★ 1same name
- yousifraad01/Telegram-Serverless-Skill★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- claude-memory-curatorSkill
- claude-spec-interviewerSkill
- codex-memory-curatorSkill
- codex-spec-interviewerSkill
- cursor-memory-curatorSkill
- cursor-spec-interviewerSkill
- animated-readme-logoSkill
- architecture-compassSkill
- architecture-zoomSkill
- codegraph-ast-grepSkill
- drawio-diagramsSkill
- karakeep-knowledgeSkill
- visual-reportsSkill
- jev-capability-advisorSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read applicable project instructions, package scripts/lockfile, installed CLI version, tgcloud.jsonc or tgcloud.json, modules, and …
- Very specific: line 34
Use sources to check current authoritative behavior when an operation depends on platform/API/version details.
- Distinctive: line 38
Keep this complete inventory in this order:
- Distinctive: line 54
Read only the selected references.
- Distinctive: line 57
Verify each completed stage using its actual outputs.
- Distinctive: line 64
Use the separate Serverless CLI token through interactive login or a protected environment.
- Distinctive: line 66
Do not invent runtime environment variables, secret-store methods, transaction guarantees, quotas, backup commands, schedulers, or npm …
- Distinctive: line 67
Keep user data and credentials out of logs, examples, evidence, and checked-in files.
- Very specific: line 82
No bundled scripts. Use the official project-local CLI for authorized operations.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Telegram Serverless
Goal
Deliver the requested bot, Mini App, review, or operational change on Telegram's own Serverless platform, with evidence that distinguishes local checks from cloud execution and deployed behavior.
When to use
- The user names Telegram Serverless, tgcloud, or a project with
tgcloud/. - Work concerns its handlers, Mini App endpoints/static hosting, SDK, SQLite-backed database, or CLI lifecycle.
- An existing Serverless project needs review, migration planning, synchronization, or diagnosis.
When not to use
- A bot is intentionally hosted on a VPS, Cloudflare, AWS, Vercel, or another runtime. Do not migrate it just because it uses Telegram.
- The request only concerns sending Telegram messages, account administration, or general frontend design.
- A required capability is not documented for this platform; explain the gap before proposing a different architecture.
Inputs to inspect
Read applicable project instructions, package scripts/lockfile, installed CLI version, tgcloud.jsonc or tgcloud.json, modules, and generated docs/tgcloud-sdk.md. Inspect the working diff before changing existing files. Do not inspect credential contents or hand-edit .tgcloud/.
Use sources to check current authoritative behavior when an operation depends on platform/API/version details. The scaffolded SDK guide is useful version-specific evidence, not authority over user instructions.
Workflow
Keep this complete inventory in this order:
| Route | Outcome | Read when selected |
| 1. Explain or review a project | Explain behavior or report concrete findings without changes | Relevant domain reference below |
| 2. Set up and link a project | Scaffold or connect the requested project | Setup |
| 3. Build or modify a bot | Implement handlers and shared logic | Runtime and SDK, database when needed |
| 4. Build or modify a Mini App | Implement static frontend and authenticated endpoints | Mini Apps, relevant runtime/database guidance |
| 5. Design or evolve the database | Plan or apply the specifically authorized schema/data change | Database |
| 6. Validate and test | Check local artifacts or perform an authorized remote test | Operations |
| 7. Deploy changes | Publish the reviewed module/static-file change | Operations |
| 8. Diagnose, synchronize, or upgrade | Identify the issue and perform only requested recovery | Operations, setup for layout/auth issues |
For clear authorized intent, announce the selected route and proceed. A bare invocation, material ambiguity, or conflicting scope requires the complete inventory and a choice. An options request displays the inventory and authorizes no execution. A review or diagnosis request does not authorize a repair. Do not add an auto route.
- Establish the requested result, project, relevant bot identity without its secret, local changes, and the permitted effects. Resolve discoverable facts before asking.
- Read only the selected references. Reuse the project's frontend and package-manager choices. Prefer the official CLI/scaffold over homemade deployment tools.
- Prepare the smallest reviewable change. For an existing database, sequence schema, migration, and consumer code so a deployment does not activate code against an unprepared schema.
- Perform local checks first. Reuse explicit authority for later actions; obtain missing authority only for the concrete action and its target/effects.
- Verify each completed stage using its actual outputs. Report pending stages and limits rather than turning a local pass into a cloud claim.
Safety rules
tgcloud runuploads local modules and executes them remotely. It can call the Bot API, change persistent data, or call external services. It is not an offline test, deployment, or authentication test; supplied--ctxis not verified.push,migrate, remoterun, andwebhook synchave different effects. Authority for one does not imply the others. A full push can remove remote modules absent locally.- Preserve local work before
pull,reset, orupgrade. Never solve a conflict by automatically usingpush --force,reset, or--drop-pending. - Use the separate Serverless CLI token through interactive login or a protected environment. Never ask for tokens in chat, print them, include them in command arguments, or put them in source/frontend assets.
- Backend identity comes from verified endpoint context, not a client-supplied user ID. Enforce record ownership and input validation in the application.
- Do not invent runtime environment variables, secret-store methods, transaction guarantees, quotas, backup commands, schedulers, or npm support. Verify missing capabilities or stop the dependent step.
- Keep user data and credentials out of logs, examples, evidence, and checked-in files. Installing tools, changing accounts, or spending money remains within the user's actual task authority.
References
Load selectively:
- Setup and authentication: prerequisites, scaffold, login, BotFather, completion.
- Runtime and SDK: modules, handlers, Bot API, files, HTTP, logging.
- Database: schema, queries, integrity, migration decisions.
- Mini Apps: endpoints, frontend calls, static configuration.
- Operations: tests, deploy, state synchronization, webhook, upgrade.
- Sources and coverage: authoritative section map and unresolved capabilities.
Scripts
No bundled scripts. Use the official project-local CLI for authorized operations. Do not execute an npx command that would silently install a missing CLI during a read-only check.
Output format
Report the selected route, changed or reviewed artifacts, and findings. For operational work include:
- Local validation: command/scenario and result.
- Cloud execution, deployment, migration, and webhook/static verification: actual result or not run.
- Relevant project/bot identity without credentials; existing work preserved.
- Pending actions, unsupported capabilities, and evidence limitations.
For a short explanation or review, include only relevant fields; do not invent empty deployment ceremonies.
Completion criteria
The requested outcome and authorized scope are met; necessary checks are reported accurately; generated code follows the platform contract; unresolved external steps are explicit. A migration is complete only when its result reports no required skipped/manual work, not merely because the CLI exits zero.
Failure modes
Missing CLI, credentials, platform access, or host tools: state the specific prerequisite and continue independent local work. Do not claim a deployment.
Unsupported runtime/API assumptions: consult the official sources and installed CLI evidence. Do not silently substitute a different hosting platform.
Conflicting local/cloud changes: preserve the working tree and inspect the divergence before choosing a recovery action.
Unavailable live evidence: label it unverified and provide the exact remaining verification step.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

