スキル一覧に戻る
paulpham157

telegram-bot-builder

by paulpham157

cloudFall - tell you when the cloud are falling. A just-for-fun practical problem to compare coding agents.

0🍴 0📅 2025年12月22日
GitHubで見るManusで実行

SKILL.md


name: telegram-bot-builder description: Build Telegram bots in Node.js. Use when a request mentions Telegram bot, BotFather, bot token, webhook, long polling, commands, inline keyboards, callback queries, or handling Telegram Bot API updates.

Telegram Bot Builder

Overview

Create production-ready Telegram bots in Node.js with clear setup steps, secure token handling, and reliable update processing. Default to telegraf unless the user specifies another library.

Workflow

  1. Clarify requirements
  • Ask for bot token availability (BotFather token) and whether commands are defined.
  • Ask for hosting and update mode: webhook or long polling.
  • Ask for features: commands, inline keyboards, callbacks, files, or integrations.
  • Ask for data storage or state (sessions, database, or in-memory).
  1. Choose library and update mode
  • Use telegraf for modern middleware and strong typing support.
  • Use node-telegram-bot-api only when explicitly requested.
  • Prefer webhooks for production hosting, long polling for local or simple deployments.
  1. Implement core bot flow
  • Create command handlers and message routing.
  • Validate inputs and avoid echoing secrets.
  • Add error boundaries and logging.
  1. Ship-ready details
  • Provide install commands and env vars.
  • Include webhook configuration or polling startup instructions.
  • Provide quick test steps and sample output.

Common tasks

Build a basic bot

  • Use references/telegraf.md for a minimal bot and message routing.

Add commands and keyboards

  • Define commands in BotFather and mirror them in code.
  • Use inline keyboards with callback queries; keep callback data small.

Webhooks and deployments

  • Use references/webhooks.md for webhook setup and platform notes.

Alternate library

  • If the user insists on node-telegram-bot-api, use references/node-telegram-bot-api.md.

Output expectations

  • Provide runnable Node.js code (ESM by default; call out CJS if needed).
  • List dependencies and install commands.
  • List required env vars, especially TELEGRAM_BOT_TOKEN.
  • Include a short verification checklist.

References

  • references/telegraf.md
  • references/webhooks.md
  • references/node-telegram-bot-api.md

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です