Langsung ke konten
Skillpedia
API & server (backend)48k ยท #5950

telegram-bot-builder

Fungsinya

Spesialis ini membantu Anda membangun robot (bot) untuk aplikasi Telegram. Anda akan belajar membuat bot sederhana untuk mengotomatiskan tugas atau bot bertenaga AI yang lebih kompleks, mulai dari struktur hingga cara menghasilkan uang darinya.

Kapan dipakai

  • โœ“Saat Anda ingin membuat bot untuk mengotomatiskan tugas yang berulang.
  • โœ“Saat Anda punya ide bot untuk Telegram tetapi belum tahu harus mulai dari mana.
  • โœ“Saat Anda ingin belajar cara menghasilkan uang dari bot Telegram.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/telegram-bot-builder/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/telegram-bot-builder/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya ingin membuat bot Telegram yang mengirim pengingat harian ke teman-teman saya. Caranya bagaimana?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Spesialis ini memandu Anda melalui struktur bot, mengajarkan cara menggunakan alat resmi Telegram (API), serta cara membuat pengguna mudah berinteraksi. Spesialis ini juga menjelaskan cara menghasilkan uang dan meningkatkan skala bot untuk banyak pengguna.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

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

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

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: When planning bot revenue

Bot Monetization

Revenue Models

Model Example Complexity
Freemium Free basic, paid premium Medium
Subscription Monthly access Medium
Per-use Pay per action Low
Ads Sponsored messages Low
Affiliate Product recommendations Low

Telegram Payments

// Create invoice
bot.command('buy', (ctx) => {
  ctx.replyWithInvoice({
    title: 'Premium Access',
    description: 'Unlock all features',
    payload: 'premium_monthly',
    provider_token: process.env.PAYMENT_TOKEN,
    currency: 'USD',
    prices: [{ label: 'Premium', amount: 999 }], // $9.99
  });
});

// Handle successful payment
bot.on('successful_payment', (ctx) => {
  const payment = ctx.message.successful_payment;
  // Activate premium for user

โ€ฆ
Pertanyaan umum

Apa itu Telegram Bot API?

Itu adalah kumpulan aturan dan alat yang disediakan Telegram agar developer bisa membuat bot mereka sendiri.

Apa itu 'Inline Keyboard'?

Itu adalah tombol interaktif yang muncul langsung di chat Telegram, sehingga interaksi dengan bot menjadi lebih mudah dan visual.

Bagaimana bot bisa menghasilkan uang?

Ada beberapa cara, seperti menawarkan fitur tambahan berbayar (freemium), langganan bulanan, bayar per penggunaan, menampilkan iklan, atau merekomendasikan produk pihak ketiga.

Detail

Deskripsi asli dari pembuat

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.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#5950
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa