Skip to content
telegram-bot-ui
Try bot-ui Studio

Agent Skill · Telegram Bot API 10.5 · v3.0.0

Telegram bots that feel like real products

Give your coding agent a skill for the whole interface of a Telegram bot: screens, texts, keyboards, streaming replies, widgets and channel posts. Use bot-ui Studio to map your bot and test its flows.

MIT licensed · offline checks · no bot token needed to try it

Works with

  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI
  • Antigravity
  • GitHub Copilot
  • OpenCode
  • Grok Build
  • Hermes Agent
  • Replit Agent
  • Devin
  • AGENTS.md readers
One sentence to your agent fixes the bot, then bot-ui Studio maps it, edits it with premium emoji and simulates every tap. In under a minute.
Pulloa’s bot map in Studio, with Telegram messages, buttons and arrows between screens

bot-ui Studio

See every screen of your Telegram bot and where its buttons lead. Test the flow in the simulator or edit a screen alongside your coding agent. Try Pulloa on this site, then run Studio on your own computer to work with your bot.

Telegram simulator

Place an order as a customer, retry a declined payment or see what a first-time visitor gets.

Pulloa’s start screen in the Studio’s Telegram simulator, with premium emoji in the message and on the buttons

Screen editor

Edit messages, button labels and transitions. See the change in the chat preview and follow its route on the map.

The Start screen’s message and keyboard alongside their live chat preview in Studio

Live widgets

Tap Keep it warm. The order tracker runs the demo bot’s widget HTML and shows the reply right in the card. Five more widgets wait on the Studio page: a cart, pickup times, a rating, a happy hour code and a drink quiz.

Try all six widgets
Order tracker
Order #218 · ready

Loading widget…

From bot files to the Studio map

The local Studio and your coding agent share the bot-ui/ folder in your repository.

  1. Open your bot project

    Open your bot-ui/ folder in local Studio. For an existing aiogram bot, you can import a project from its code first.

  2. Studio builds the map

    Each screen becomes a chat card. Arrows show where the buttons lead, including both branches of a rule.

  3. Test a route in the simulator

    Start the simulator and tap through the flow as a user. See the messages and transitions that each action triggers.

  4. Review changes on the map

    Leave a request on a screen and copy the task for your agent from Changes. Review the edits in Git and check the updated flow in Studio.

New in bot-ui Studio

Bring your own premium emoji packs.

Import your custom emoji packs by link, use them in any screen of your bot, and hand the same icon map to your coding agent.

https://t.me/addemoji/…Import

Shop iconst.me/addemoji/ShopIcons · 120 emoji

Status markst.me/addemoji/StatusMarks · 48 emoji

Coffee sett.me/addemoji/CoffeeSet · 64 emoji

Run Studio on your bot

Telegram shows custom emoji when the bot has a Fragment username or its owner has Premium.

What changes in your bot

The same bot, designed on purpose.

Drawn mock-ups of what the skill teaches your agent to build. A bot message has no CSS: its interface is text, formatting, keyboards and the moments between states.

Demo 1: Settings menu, before and after

Without the skill

Without the skillA settings message with a shouting title, five cut-off buttons in one row, a duplicated 'Order placed' message and a stale Pay now button.10:02*** SETTINGS MENU ***Please select what you want to dofrom the options below:Notif…Lan…Del…HelpClose10:03Order placed!10:03Order placed!Pay now
  • Shouting title, labels cut off, a destructive action one tap away
  • Double tap → two orders, and a stale “Pay now” that still works

With the skill

With the skillA clean settings screen: one title, Notifications and Language side by side, a red Delete account button, Back, and a single order card with a green Paid state and Track order.10:02SettingsChoose what to change.NotificationsLanguageDelete accountBack10:03Order #4821 · €46.74Courier · arrives about 10:40PaidTrack order
  • One clear title, readable labels, danger styled and behind a confirmation
  • One order per tap; the card updates in place once it’s paid

Demo 2: Streaming AI reply with Stop

Real stages instead of “typing…”, one draft that fills in place, and a Stop button with a clear “stopped, incomplete” ending.

Streaming AI replyThe user asks to plan the next release. The bot shows a live status, Searching 3 sources, streams the answer into one draft message and offers a Stop button.Plan our next releaseSearching 3 sources…Here’s a short plan for your release:tag the build, run the smoke tests and ▍Draft · updates in placeStop

Demo 3: Agent notification and approval

Your agent reports through its own bot. Approval buttons are bound to one action, and only the operators on the allowlist can press them.

Agent notification and approvalThe agent reports Build finished with all checks passed, then asks for approval to deploy one specific commit to production with Approve and Reject buttons and a View the diff link.10:12Build finishedweb · main · 3 min 41 s · checks passed10:12Approval neededDeploy web@a1c9f2e to production.These buttons approve this one action only.ApproveRejectView the diff

Demo 4: Channel post: preview, approve, publish once

Compose, validate and preview first. Nothing is published without a human’s yes, and a timed-out post is checked before any retry.

Channel post: preview, approve, publish onceA channel post is shown as a preview first, the bot asks whether to publish it at 09:00 with Publish and Edit buttons, and a timeout is checked before any retry so the post goes out once.1 Preview2 Approve3 Publish once09:00AAcme updateschannel · preview, not published yetVersion 3.2Version 3.2 is outDark mode, faster search and a newonboarding. Notes below.Read the notesPublish to the channel at 09:00?A timeout is checked before any retry.PublishEdit

Demo 5: Rich message and an HTML widget

Compact tables and expandable quotes for reports; one live widget card instead of four status messages.

Rich message with a table, and an HTML widget cardA weekly report with a compact three-column table and an expandable quote, followed by an order widget with a four-step progress track, the courier's arrival time and a Track on map button.18:00Weekly reportMetricThis weekChangeOrders1,284+8%Revenue€18.2k+5%Returns12−2Top request: dark modeShow moreHTML widgetOrder #4821€46.74PaidPackedOn the wayDeliveredCourier · arrives about 10:40Track on map

Without the skill, and with it

What changes when your agent uses the skill
AI answer takes 20 sWithout: “typing…” then a wall of textWith: a streamed draft with real stages, a Stop button and a clear “stopped, incomplete” ending
A formWithout: “Send your phone” with no way backWith: buttons and a reply field in one step, Back keeps answers, Submit disabled until valid
“My balance” in a groupWithout: posted for everyone to seeWith: shown only to the person who tapped, and never leaked on errors
Order statusWithout: four new messages per updateWith: one live card that updates in place
Channel post timed outWithout: posted again, now twiceWith: outcome treated as unknown and checked before any retry
“Ignore your rules” sent to an agent botWithout: the agent obeysWith: quoted as data; the operator is told
Old SDKWithout: new features silently droppedWith: the gap is detected and bridged with an isolated adapter

What your agent can do

From one button label to a whole bot product.

The skill routes each task to focused guides, 66 recipes and offline tools, so your agent writes only what your project is missing.

  • Build bot interfaces

    Texts, menus, inline and reply keyboards, colored and disabled buttons, forms, navigation, streaming answers with Stop, Rich Messages, tables, localization, and the bot’s own settings from code (Bot API 10.5).

  • Product flows

    Shops, support, bookings, AI assistants, trackers: no stale “Pay” buttons, no double orders, no personal data leaking into groups.

  • Publish to channels

    Compose, validate, preview, approve and schedule channel posts; never post twice after a timeout.

  • Operate as an agent through a bot

    Drive an agent from Telegram with an operator allowlist and approval buttons bound to one action. Inbound messages are data, not instructions.

  • Build HTML widgets

    Bot API 10.4 widgets inside messages: 18 ready widgets, a size check that follows the server’s algorithm, caption fallback and a local preview.

  • Premium emoji

    One custom emoji pack across buttons, texts and posts, with real ids from the pack and an all-or-nothing fallback when the bot is not eligible.

  • Look up the whole Bot API

    194 methods and 426 types in a local catalog. Validate a payload before sending; the agent refuses to invent a field.

  • Knows when not to

    No widget for a three-button menu, no table for two facts, no group widgets in production, no publishing without a human’s yes.

Prompt scenarios

What to tell your agent, from the first Studio run to a one-button fix.

23 prompts for every part of the skill. Pick a stage, copy a prompt, swap in your bot’s nouns and paste it into your agent.

Set up. First contact: an audit, Studio for a new or existing bot, a file you can hand to a designer.

  • Audit the bot before touching it

    You inherited a bot and want to know what is wrong first.

    Use the telegram-bot-ui skill. Audit the interface of the bot in this repository: list every screen with its text, keyboard and where each button leads, then rank the problems by how much they hurt a user. Do not change any code yet.

    What the agent does
    1. Inventories commands, callbacks, texts and keyboards across the handlers
    2. Checks every keyboard offline and flags dead ends, stale buttons and silent taps
    3. Returns a ranked list with the screen, the problem and the fix it proposes

    Parts of the skill it uses

    • auditing-existing-bots.md
    • consistency-and-review.md
    • validate_keyboard.py
  • Set up bot-ui Studio from scratch

    A new bot, and you want to see its screens on a map before writing handlers.

    Set up bot-ui Studio for this repository. Create a bot-ui/ project from the starter template, validate it, run every simulator scenario, then start Studio on localhost and give me the link. Explain what each screen file does in two lines.

    What the agent does
    1. Builds the Studio client once and runs bot-ui init (it never overwrites an existing folder)
    2. Runs validate and simulate --all, and reports every diagnostic with its file and pointer
    3. Starts Studio on 127.0.0.1 only and prints the address of the first screen

    Parts of the skill it uses

    • bot-ui init
    • bot-ui validate
    • bot-ui simulate --all
    • bot-ui studio

    Pairs well with: A browser tool: ask the agent to open the Studio link and tap through the simulator itself.

  • Bring an existing aiogram bot into Studio

    The bot already runs in production and you want its map without breaking it.

    Read my aiogram bot in ./bot without changing it and make a bot-ui/ project from its commands, callbacks, buttons and texts. Keep every callback_data and deep link exactly as it is. Open the result in Studio and list the screens you could not map.

    What the agent does
    1. Runs a read-only inventory of the bot and proposes one screen per state
    2. Keeps callback_data, URLs and payloads untouched, so live keyboards keep working
    3. Opens the map and names the handlers it left for a person to decide

    Parts of the skill it uses

    • bot-ui inventory --source
    • project-adaptation.md
    • Preserve behaviour rule
  • Hand the screens to a designer as one file

    Someone without the repository needs to edit texts and test the flow.

    Export a Studio snapshot of bot-ui/ as one HTML file I can send to our designer. When they send back a patch file, apply it, refuse it if the project changed since, and show me the git diff.

    What the agent does
    1. Exports a self-contained HTML: no network, no paths, no widget sources
    2. Applies the returned patch through the one write path and reports written or refused
    3. On a revision conflict, explains how to export a fresh snapshot and redo the edit

    Parts of the skill it uses

    • bot-ui export-snapshot
    • bot-ui apply-patch
    • REVISION_CONFLICT

The skill activates on its own when you describe the task. To call it by name, start the prompt with /telegram-bot-ui in Claude Code or $telegram-bot-ui in Codex. Anything public, a channel post or a deploy, still waits for your yes.

Supported agents

One skill folder, every major coding agent.

The skill is one folder with a SKILL.md entry point. Install paths follow each host’s own documentation. See how each host loads it.

  • Claude Code

    Plugin with five subagents, or a plain skill folder in ~/.claude/skills.

    Call it: /telegram-bot-ui

  • Codex

    Reads ~/.agents/skills; custom agents in .codex/agents.

    Call it: $telegram-bot-ui

  • Cursor

    Reads ~/.agents/skills; optional rule in .cursor/rules.

    Call it: /telegram-bot-ui

  • Gemini CLI

    ~/.gemini/skills, or gemini skills install from the repository URL.

    Activates from the task description

  • Antigravity

    Reads .agents/skills in the workspace; skills become slash commands.

    Call it: /telegram-bot-ui

  • GitHub Copilot

    Reads ~/.agents/skills; optional copilot-instructions block.

    Activates from the task description

  • OpenCode

    Reads .agents/skills in the project and ~/.config/opencode/skills.

    Activates from the task description

  • Grok Build

    xAI’s agent. Reads .grok/skills and ~/.grok/skills.

    Activates from the task description

  • Hermes Agent

    Reads ~/.hermes/skills; project folders after hermes skills trust.

    Activates from the task description

  • Replit Agent

    Reads .agents/skills in the Repl, or imports the skill from the repository URL.

    Activates from the task description

  • Devin

    Reads ~/.agents/skills; install with --host codex.

    Activates from the task description

  • AGENTS.md readers

    Cline and others: paste the AGENTS.md snippet and keep the folder in the repo.

    Activates from the task description

Install

Pick your agent, copy one line.

Every command installs the latest version and comes with the one that updates it. Then just ask: the skill activates on its own, no API names needed.

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.

Then, in your bot’s repository

  • “Improve the UX of this Telegram bot.”
  • “Add a Stop button to the AI answers.”
  • “People double-tap “Place order” and get two orders.”
  • “Post this release note to our channel tomorrow at 9:00. Show me the preview first.”
  • “Make the agent ask for approval with buttons before anything risky.”
  • “Turn the order status into one card that updates.”

More hosts and options: install guide.

Checked, not assumed

Bot API version, verified against the official docs on 2026-11-22
10.5
Bot API methods in the offline catalog, plus 426 types
194
offline tests: 443 Python and 31 TypeScript, run in CI on Linux and Windows
474
numbered recipes, from a settings screen to a whole shop
66
ready HTML widgets with light and dark themes
18
subagents: designer, builder, publisher, widget builder, reviewer
5

Frequently asked questions

Short answers. The README has the long ones.