telegram-mini-apps

telegram-mini-apps is a skill for Codex from san-npm/skills-ws. It costs 88 tokens per session (1,285 once invoked), scanned A, original, MIT.

A guide for building Telegram Mini Apps, which are web apps opened inside Telegram, with a Telegram bot and in-app payments using Stars. It covers app features, server-side launch-data checks, bot webhooks, and deployment.

In plain words
What is it for?
Use it to build Next.js Mini Apps with cloud storage, biometric checks, full-screen mode, story sharing, bot interactions, rate limiting, and Stars payments.
Why use it?
It helps keep Telegram user data and payment flows on the server where they can be checked, while accounting for native features that may not be available on every device.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to build Next.js Mini Apps with cloud storage, biometric checks, full-screen mode, story sharing, bot interactions, rate limiting, and Stars payments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/san-npm/skills-ws/telegram-mini-apps
Install

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.

Any agent
npx skills add san-npm/skills-ws --skill telegram-mini-apps
Clone the repo
git clone --depth 1 https://github.com/san-npm/skills-ws

Made for: Codex.

Wrote 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.

agentmods badge for telegram-mini-apps

README.md
[![agentmods](https://agentmods.dev/badge/skills/san-npm/skills-ws/telegram-mini-apps/github.svg)](https://agentmods.dev/skills/san-npm/skills-ws/telegram-mini-apps)
Your own site
<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.

agentmods 80×15 button for telegram-mini-apps

Your own site · 80×15
<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>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash 2a34d97e2084, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

skills/telegram-mini-apps/SKILL.md · 50 lines

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/sdk v3 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.

Read the full file on GitHub · 50 lines

Changes

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.

  1. 5d ago First seen · 50 lines · 88 tokens per session scan A 2a34d97e2084

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

agent-spec-mobile-react-native

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.

ruvnet/ruflo · 22 tokens

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/skills · 67 tokens

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/skills · 111 tokens

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…

expo/skills · 74 tokens

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…

lodev09/react-native-true-sheet · 169 tokens

building-ui

Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.

Intelligent-Internet/ii-agent · 30 tokens