Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add san-npm/skills-ws --skill telegram-mini-appsgit clone --depth 1 https://github.com/san-npm/skills-wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/san-npm/skills-ws/telegram-mini-apps)<a href="https://agentmods.dev/skills/san-npm/skills-ws/telegram-mini-apps"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/telegram-mini-apps/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/san-npm/skills-ws/telegram-mini-apps"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/telegram-mini-apps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.01285 |
| Opus 5 | $0.00044 | $0.00642 |
| Sonnet 5 | $0.00018 | $0.00257 |
| Haiku 4.5 | $0.00009 | $0.00128 |
Grade A, and why
telegram-mini-apps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Telegram Mini Apps with Stars Payments — Expert Skill
A production-grade reference for building Telegram Mini Apps (TWA) on Next.js:
@telegram-apps/sdkv3 init, native capabilities (CloudStorage, biometry, fullscreen, shareStory), server-side initData HMAC validation, grammY bot webhooks, Stars (XTR) payments, and serverless deployment. Scope is the bot + Mini App + Stars billing stack; for advanced BotFather configuration and Bot API specifics, cross-check core.telegram.org/bots/webapps and docs.telegram-mini-apps.com.
Tested version matrix (as of Jun 2026)
These versions were verified to work together. Always confirm latest at each package's releases page before pinning.
| Package / runtime | Pin used here | Notes |
|---|---|---|
| Node.js | 22 LTS or 24 LTS | Node 18 and 20 are both EOL, do not target them for new deploys. |
@telegram-apps/sdk |
^3 |
v2 → v3 renamed several mount/signal APIs (see migration note below). |
@telegram-apps/sdk-react |
^3 |
React bindings (useSignal, useLaunchParams). |
grammy |
^1.30 |
Verify method signatures at grammy.dev; sendInvoice dropped positional provider_token in 1.24+ (Bot API 7.4 support). |
next |
^15 (App Router) |
Next.js 16 is current — verify at nextjs.org; RSC/route-handler APIs unchanged for this skill. |
react / react-dom |
^19 |
|
@libsql/client (Turso) |
^0.15 |
Verify at github.com/tursodatabase/libsql-client-ts. |
typescript |
^5.6+ |
|
| Telegram Bot API | 7.x+ | Stars/XTR, refundStarPayment, getStarTransactions. |
| Telegram WebApp platform | 8.0+ | requestFullscreen, shareStory, home-screen shortcuts require 8.0+. |
Do not confuse the two "versions". The npm package
@telegram-apps/sdk(major v3 in mid-2026) is independent of the Telegram WebApp platform version (e.g.8.0) reported in launch params. Older docs/skills saying "TMA SDK 7.x" conflated the two — there is no npm SDK 7.x.
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 207 B
- references/1-overview-architecture.md 2.3 KB
- references/10-markdownv2-escaping.md 2.1 KB
- references/11-database-options.md 4.0 KB
- references/12-next-js-deployment.md 3.5 KB
- references/13-security-hardening.md 4.4 KB
- references/14-complete-example-app.md 2.6 KB
- references/15-troubleshooting.md 3.0 KB
- references/2-twa-sdk-setup-v3-v2-v3-migration.md 9.8 KB
- references/3-native-capabilities-cloudstorage-biometry-fullscreen-sharestory.md 7.4 KB
- references/4-initdata-hmac-validation.md 6.2 KB
- references/5-bot-setup-with-grammy.md 2.0 KB
- references/6-webhook-handlers.md 2.9 KB
- references/7-stars-payments-xtr.md 12 KB
- references/8-deep-linking.md 2.4 KB
- references/9-telegram-theme-css-variables.md 5.2 KB
- references/quick-reference.md 2.7 KB
- references/rules-for-the-agent.md 1.5 KB
- references/table-of-contents.md 817 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 50 lines · 88 tokens per session scan A 2a34d97e2084
telegram-mini-apps is a skill published in the GitHub repository san-npm/skills-ws (2 stars, last pushed 5d ago), licensed MIT. It adds 88 tokens to every session and 1,285 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.
Other skills, from other repositories
agent-spec-mobile-react-native
Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.
expo-native-ui
Framework (OSS). Build beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols, media, visual effects, gradients, storage, and responsive layout. For routing and navigation, use the expo-router skill; for motion and animation, use the expo-animation skill.
expo-web-to-native
Framework (OSS). Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Next.js/Vite/CRA React codebase to React Native, reuse web code on native incrementally, or asks how web idioms (the DOM, CSS, React Router, localStorage…
expo-brownfield
Framework (OSS). Integrate Expo and React Native into an existing native iOS or Android app. Use for brownfield, embedding a React Native screen in SwiftUI/UIKit or Kotlin, or AAR/XCFramework packaging. Covers isolated and integrated approaches. For building or distributing a purely native app with EAS, use…
truesheet-usage
Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…
building-ui
Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.