
Telegram Bot Builder
Design and implement Telegram bots with solid architecture, Bot API usage, conversational UX, webhooks, and paths to monetize and scale.
Overview
telegram-bot-builder is an agent skill most often used in Build (also Grow content, Validate prototype) that guides architecture, Telegram Bot API implementation, UX, webhooks, and scaling for real-world bots.
Install
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill telegram-bot-builderWhat is this skill?
- Full-stack bot architect lens: commands, inline keyboards, webhook management, and onboarding UX
- Stack comparison table for Node.js (telegraf) and Python ecosystems
- Covers monetization, analytics, and scaling patterns for thousands of users
- Patterns for maintainable bot architecture when starting a new bot project
- Roleplay as Telegram Bot Architect focused on daily-use assistant quality
Adoption & trust: 2.7k installs on skills.sh; 40.1k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want a Telegram bot users will open every day but lack structure for API wiring, conversation design, webhooks, and growth-ready architecture.
Who is it for?
Solo builders shipping automation, community, or AI-assisted Telegram bots on Node.js or Python with webhook hosting in mind.
Skip if: Teams needing only generic REST API design without Telegram-specific UX, compliance, or BotFather constraints, or native mobile apps outside Telegram.
When should I use this skill?
When starting a new Telegram bot project or leveling up architecture, Bot API usage, UX, monetization, and scaling beyond a toy script.
What do I get? / Deliverables
You leave with a maintainable bot architecture, chosen stack, webhook plan, and UX/monetization patterns ready to implement and iterate toward production traffic.
- Documented bot architecture and stack choice
- Command and inline-keyboard conversation map
- Webhook deployment and scaling checklist
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Canonical shelf is Build because the skill centers on implementing bots, commands, and Telegram API integration before distribution matters. Integrations fits Telegram Bot API, webhook architecture, inline keyboards, and third-party messaging platform wiring.
Where it fits
Sketch a minimal command set and webhook flow to validate whether users complete one core bot task.
Implement Telegraf handlers, inline keyboards, and webhook endpoint behind your hosting provider.
Harden webhook verification and token storage before exposing the bot to public groups.
Design onboarding messages, analytics hooks, and monetization flows for returning daily users.
Plan webhook reliability and error visibility as concurrent chat volume increases.
How it compares
Use instead of one-shot “write a Telegram bot” prompts when you need architecture, monetization, and scaling patterns—not a single-file demo.
Common Questions / FAQ
Who is telegram-bot-builder for?
Indie developers and small teams building Telegram bots—from simple automation to AI-powered assistants—who want API, UX, and business-minded guidance in one skill.
When should I use telegram-bot-builder?
Use it in Build (integrations) when starting or refactoring a bot, in Validate (prototype) to proof a conversational MVP, and in Grow (lifecycle) when tuning onboarding, analytics, or monetization.
Is telegram-bot-builder safe to install?
It is Apache-2.0 sourced guidance; review the Security Audits panel on this page and never paste production bot tokens into untrusted logs or public repos.
SKILL.md
READMESKILL.md - Telegram Bot Builder
# Telegram Bot Builder Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. **Role**: Telegram Bot Architect You build bots that people actually use daily. You understand that bots should feel like helpful assistants, not clunky interfaces. You know the Telegram ecosystem deeply - what's possible, what's popular, and what makes money. You design conversations that feel natural. ### Expertise - Telegram Bot API - Bot UX design - Monetization - Node.js/Python bots - Webhook architecture - Inline keyboards ## Capabilities - Telegram Bot API - Bot architecture - Command design - Inline keyboards - Bot monetization - User onboarding - Bot analytics - Webhook management ## Patterns ### Bot Architecture Structure for maintainable Telegram bots **When to use**: When starting a new bot project ## Bot Architecture ### Stack Options | Language | Library | Best For | |----------|---------|----------| | Node.js | telegraf | Most projects | | Node.js | grammY | TypeScript, modern | | Python | python-telegram-bot | Quick prototypes | | Python | aiogram | Async, scalable | ### Basic Telegraf Setup ```javascript import { Telegraf } from 'telegraf'; const bot = new Telegraf(process.env.BOT_TOKEN); // Command handlers bot.start((ctx) => ctx.reply('Welcome!')); bot.help((ctx) => ctx.reply('How can I help?')); // Text handler bot.on('text', (ctx) => { ctx.reply(`You said: ${ctx.message.text}`); }); // Launch bot.launch(); // Graceful shutdown process.once('SIGINT', () => bot.stop('SIGINT')); process.once('SIGTERM', () => bot.stop('SIGTERM')); ``` ### Project Structure ``` telegram-bot/ ├── src/ │ ├── bot.js # Bot initialization │ ├── commands/ # Command handlers │ │ ├── start.js │ │ ├── help.js │ │ └── settings.js │ ├── handlers/ # Message handlers │ ├── keyboards/ # Inline keyboards │ ├── middleware/ # Auth, logging │ └── services/ # Business logic ├── .env └── package.json ``` ### Inline Keyboards Interactive button interfaces **When to use**: When building interactive bot flows ## Inline Keyboards ### Basic Keyboard ```javascript import { Markup } from 'telegraf'; bot.command('menu', (ctx) => { ctx.reply('Choose an option:', Markup.inlineKeyboard([ [Markup.button.callback('Option 1', 'opt_1')], [Markup.button.callback('Option 2', 'opt_2')], [ Markup.button.callback('Yes', 'yes'), Markup.button.callback('No', 'no'), ], ])); }); // Handle button clicks bot.action('opt_1', (ctx) => { ctx.answerCbQuery('You chose Option 1'); ctx.editMessageText('You selected Option 1'); }); ``` ### Keyboard Patterns | Pattern | Use Case | |---------|----------| | Single column | Simple menus | | Multi column | Yes/No, pagination | | Grid | Category selection | | URL buttons | Links, payments | ### Pagination ```javascript function getPaginatedKeyboard(items, page, perPage = 5) { const start = page * perPage; const pageItems = items.slice(start, start + perPage); const buttons = pageItems.map(item => [Markup.button.callback(item.name, `item_${item.id}`)] ); const nav = []; if (page > 0) nav.push(Markup.button.callback('◀️', `page_${page-1}`)); if (start + perPage < items.length) nav.push(Markup.button.callback('▶️', `page_${page+1}`)); return Markup.inlineKeyboard([...buttons, nav]); } ``` ### Bot Monetization Making money from Telegram bots **When to use**