# Telegram Bot UI: Agent Skill for bots, Mini Apps and emoji

> Open-source Agent Skill for Claude Code, Codex and Cursor: Telegram bot screens, Mini Apps, Stars and premium emoji, plus an MCP server and emoji library.

Version 3.3.0, Telegram Bot API 10.5, verified 2026-11-22. MIT licensed, free. Source: https://github.com/hlibsuslov/telegram-bot-ui

## What it is

An open-source Agent Skill that teaches a coding agent (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and others) to design, audit, build and operate everything a Telegram bot shows, sends and reacts to: screens, keyboards, menus, forms, streaming AI replies with Stop, HTML widgets, Mini Apps, Rich Messages, premium emoji, Stars payments, channel posts and mailings. It ships offline catalogs of the whole Bot API and Telegram.WebApp, bot-ui Studio (a local screen map and Telegram simulator), an MCP server, and a free premium emoji library.

## Install

The fastest way: ask your agent to "Install the telegram-bot-ui skill following https://telegram-bot-ui.hlixli.com/agents.md". Or run one of these:

### Any agent: pick yours in the prompt

Run it in your project; the CLI finds the agents on your machine and asks where to install. Add -g to install for every project. Needs Node.js 22.20 or later.

- Install: `npx skills add hlibsuslov/telegram-bot-ui`
- Update to the latest: `npx skills update telegram-bot-ui`
- Or with the GitHub CLI (2.96+), latest tagged release: `gh skill install hlibsuslov/telegram-bot-ui` (Update with gh skill update.)

### Claude Code: plugin with the skill and five subagents

Run inside a Claude Code session (2.1.275 or later). The skill is then /telegram-bot-ui:telegram-bot-ui.

- Install: `/plugin install telegram-bot-ui --marketplace hlibsuslov/telegram-bot-ui`
- Update to the latest: `claude plugin update telegram-bot-ui`
- Or the skill alone, without subagents: `npx skills add hlibsuslov/telegram-bot-ui -a claude-code -g -y` (Installs to ~/.claude/skills.)

### Codex: install with the skills CLI

Installs to ~/.agents/skills. Call it with $telegram-bot-ui or just describe the task.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a codex -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`
- Or as a Codex plugin: `codex plugin marketplace add hlibsuslov/telegram-bot-ui` (Then install telegram-bot-ui from the Plugins directory in Codex.)

### Cursor: install with the skills CLI

Installs to ~/.cursor/skills. Cursor picks it up by description or from the / menu.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a cursor -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### GitHub Copilot: install with the GitHub CLI

GitHub CLI 2.96 or later; installs the latest tagged release for Copilot.

- Install: `gh skill install hlibsuslov/telegram-bot-ui telegram-bot-ui --agent github-copilot --scope user`
- Update to the latest: `gh skill update`
- Or with the skills CLI: `npx skills add hlibsuslov/telegram-bot-ui -a github-copilot -g -y` (Installs to ~/.copilot/skills.)

### Gemini CLI: install with the skills CLI

Installs to ~/.gemini/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a gemini-cli -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`
- Or with Gemini’s own installer: `gemini skills install https://github.com/hlibsuslov/telegram-bot-ui` (Gemini asks for consent the first time the skill activates.)

### Antigravity: install with the skills CLI

Installs to ~/.gemini/config/skills; the skill becomes a slash command.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a antigravity -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### OpenCode: install with the skills CLI

Installs to ~/.config/opencode/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a opencode -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### Grok Build: install with the skills CLI

xAI Grok Build. Installs to ~/.grok/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a grok -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### Hermes Agent: install with the skills CLI

Installs to ~/.hermes/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a hermes-agent -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`
- Or with Hermes’ own installer: `hermes skills install hlibsuslov/telegram-bot-ui/skills/telegram-bot-ui` (From the Hermes Agent docs.)

### Replit Agent: add it to your Repl

Run it in the Repl’s Shell. Replit reads skills from the project’s .agents/skills folder.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a replit -y`
- Update to the latest: `npx skills update telegram-bot-ui -p -y`
- Or without the Shell: `https://github.com/hlibsuslov/telegram-bot-ui` (In Agent, open + → Use a skill and import this repository URL.)

### Devin: install with the skills CLI

Devin for Terminal. Installs to ~/.config/devin/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a devin -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### Cline: install with the skills CLI

Installs to ~/.agents/skills.

- Install: `npx skills add hlibsuslov/telegram-bot-ui -a cline -g -y`
- Update to the latest: `npx skills update telegram-bot-ui -g -y`

### Without Node.js: clone and run the installer

Standard-library Python; on Windows use py -3 instead of python. --host takes claude, codex, cursor, gemini, copilot or all; add --dry-run to see the plan first. Includes the subagents.

- Clone: `git clone https://github.com/hlibsuslov/telegram-bot-ui.git && cd telegram-bot-ui`
- Install: `python scripts/install.py --host all --scope user`
- Update to the latest (inside the clone): `git pull && python scripts/install.py --host all --scope user`

## Free tools on this site

- [Telegram premium emoji library](https://telegram-bot-ui.hlixli.com/emoji): search packs by name, meaning or emoji; copy custom emoji IDs, message HTML and bot button icons. Also in [Russian](https://telegram-bot-ui.hlixli.com/emoji/ru) and [Ukrainian](https://telegram-bot-ui.hlixli.com/emoji/uk).
- [Emoji mosaic maker](https://telegram-bot-ui.hlixli.com/emoji/mosaic): turn a picture, GIF or video into a Telegram premium emoji pack that rebuilds it in one message. Also in [Russian](https://telegram-bot-ui.hlixli.com/emoji/ru/mosaic) and [Ukrainian](https://telegram-bot-ui.hlixli.com/emoji/uk/mosaic).
- [Custom emoji guide](https://telegram-bot-ui.hlixli.com/emoji/custom-emoji-guide) and [JSON API, ID lookup and MCP server](https://telegram-bot-ui.hlixli.com/emoji/api-docs) ([OpenAPI](https://telegram-bot-ui.hlixli.com/api/emoji-openapi.json), MCP at https://telegram-bot-ui.hlixli.com/api/mcp).
- [bot-ui Studio](https://telegram-bot-ui.hlixli.com/studio): map a bot's screens and test its flows.

## Questions

### What is Telegram Bot UI?

An open-source Agent Skill: knowledge, recipes and offline tools that teach your coding agent to design and build Telegram bots, Mini Apps and channel posts the way Telegram users expect. It also ships bot-ui Studio, a local MCP server and a free premium emoji library.

### Does it change my bot?

No. It is knowledge and tools for your agent; the agent edits your bot when you ask.

### Does it send messages or need my bot token?

The checks never do. Publishing and agent operation read a bot token from an environment variable, and the skill requires your explicit approval before anything is published.

### Which language or framework does my bot need?

Any. The skill reasons in Bot API payloads and ships runnable examples in Python and TypeScript, plus adapters for aiogram and grammY.

### How do I call it?

Just describe the task, for example “Improve the UX of this Telegram bot.” The skill picks one of its twelve commands on its own. You can also call it by name: /telegram-bot-ui in Claude Code, $telegram-bot-ui in Codex, or the / menu in Cursor and Antigravity.

### Can I use it as an MCP server?

Yes, two of them. The skill runs a local stdio MCP server with 15 tools (Bot API lookup, request and Rich HTML validation, the bot-ui map, command menu audit, emoji pick): tgui.py mcp. The emoji library is a separate remote MCP server at /api/mcp with six read-only tools and no sign-in.

### Is the emoji library free? Does it need an API key?

Free, no key and no sign-in. Search 479 packs in the browser, call the JSON API, connect the MCP server or download the whole catalog as one gzip file. Requests are rate-limited per client.

### Do I need Telegram Premium for custom emoji?

A bot with a Fragment username can use custom emoji everywhere. Owner Premium covers only messages the bot sends to private chats, groups and supergroups, not channel posts. Otherwise the skill falls back to plain emoji for the whole message, never a mix.

### Does it build Telegram Mini Apps?

Yes, since 3.1. It decides whether you need a Mini App at all, then builds or reworks one with Telegram’s theme roles, native controls, Stars payments and server-side initData verification, and lints the result.

### My bot uses an old SDK.

The skill checks what your SDK supports and either suggests an upgrade or adds a small, isolated adapter with a “remove when” note.

### What is not verified yet?

Live calls to Telegram and rendering in the Telegram apps are not part of the offline checks, and the skill tells your agent which level of evidence it has. Cursor, Antigravity, Copilot, Devin, Cline, OpenCode, Grok Build, Hermes Agent and Replit Agent were checked by documentation only. Agent evals, their runner and the judge are ready, but no full agent run has been published yet.

### Is this an official Telegram project?

No. It is an independent MIT-licensed community project, not affiliated with or endorsed by Telegram.

## More for agents

- [agents.md](https://telegram-bot-ui.hlixli.com/agents.md): install per host, verify, commands, project memory, safety
- [llms.txt](https://telegram-bot-ui.hlixli.com/llms.txt) and [llms-full.txt](https://telegram-bot-ui.hlixli.com/llms-full.txt): everything in one file
