tg-miniapp for Openclaw

A comprehensive toolkit for building and debugging Telegram Mini Apps, resolving common safe area, layout, and API integration challenges.

zenith2828
v1.0.1
Feb 2, 2026
2
3.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install tg-miniapp

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install tg-miniapp using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is tg-miniapp?

The tg-miniapp skill is a technical resource designed for developers building within the Telegram ecosystem. It provides battle-tested solutions for the unique constraints of the Telegram WebApp environment, such as container transforms that break traditional CSS positioning and platform-specific UI behaviors. By integrating this Openclaw Skills package, developers can bypass months of trial and error when dealing with safe areas, hardware back buttons, and complex inline sharing flows.

This skill focuses on delivering high-performance, native-feeling experiences. It bridges the gap between standard web development and the specialized Telegram Mini App API, offering optimized React hooks and pre-built components that ensure consistent performance across both iOS and Android platforms.

tg-miniapp Use Cases

  • Managing dynamic safe area insets in fullscreen mode.
  • Fixing broken position:fixed elements using React portals.
  • Handling hardware and software BackButton events reliably.
  • Implementing secure inline sharing with prepared message IDs.
  • Troubleshooting React-specific rendering bugs in mobile webview environments.

How tg-miniapp Works

  1. Initialize the development environment using the Telegram Apps SDK.
  2. Implement reactive hooks to handle async values for safe area insets and context-dependent UI.
  3. Wrap UI components in portals to escape Telegram's container transform limitations.
  4. Configure the backend to generate single-use prepared inline message IDs for sharing functionality.
  5. Follow the multi-platform testing checklist to ensure compatibility across chat types and operating systems.

tg-miniapp Setup

To start using this Openclaw Skills resource, ensure you have the required SDK installed in your project:

npm install @telegram-apps/sdk

Configure your application by referencing the provided knowledge base and components:

  • Import hooks from references/hooks.ts for safe area management.
  • Utilize the layout components found in references/components.tsx.
  • Consult references/KNOWLEDGE.md for specific troubleshooting steps.

tg-miniapp Data Schema & Taxonomy

The skill utilizes a structured approach to manage development resources and best practices:

File Category Description
KNOWLEDGE.md Documentation Comprehensive database of known issues and technical solutions.
hooks.ts Logic React hooks for safe areas, fullscreen status, and SDK event handling.
components.tsx UI Reusable components including SafeAreaHeader and DebugOverlay.
Testing Checklist QA A step-by-step verification guide for iOS, Android, and chat-specific flows.

tg-miniapp Advanced Features

  • Reactive safe area management for dynamic fullscreen transitions.
  • Integration with @BotFather for advanced inline mode configuration.
  • Specialized portal-based rendering for modals and fixed headers.
  • Efficient single-use token handling for static and dynamic content sharing.
  • Debugging overlays designed for mobile-first environment inspection.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*