telegram-bot

Develop Telegram bots with Telegraf v4 command handlers and middleware.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Jeffrey0117/myclaudeset --skill telegram-bot-jeffrey0117
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram-bot
Source: https://github.com/Jeffrey0117/myclaudeset/tree/main/skills/telegram-bot
Command: npx skills add https://github.com/Jeffrey0117/myclaudeset --skill telegram-bot-jeffrey0117

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured framework and best practices for developing Telegram bots using the Telegraf v4 library, simplifying the creation of command handlers, message processing, and user interactions.

Core Features & Use Cases

  • Modular Bot Structure: Organize your bot code into logical directories for commands, handlers, middleware, and types.
  • Event Handling: Efficiently manage different message types (text, photo, document, voice) and callback queries.
  • Middleware Implementation: Integrate custom logic for authentication, rate limiting, and error handling.
  • Inline Keyboard Integration: Create interactive user interfaces with inline keyboards and handle user selections.
  • File Handling: Download files from Telegram and process them locally.
  • Use Case: Develop a customer support bot that can receive text messages, process image uploads for bug reports, and respond with inline buttons for common queries.

Quick Start

Use the telegram-bot skill to create a new command handler for a Telegram bot.

Frequently Asked Questions about telegram-bot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Telegram bot using Telegraf and TypeScript?

Build a Telegram bot using Telegraf by structuring your TypeScript project into modular directories for commands, handlers, middleware, and type definitions. This framework provides patterns for event handling and inline keyboard integration.

What is the best way to handle different message types in a Telegraf bot?

Handle different message types in a Telegraf bot using structured event processing patterns for text, photo, document, and voice messages. The framework simplifies routing these inputs to specific handler modules.

How do I add inline keyboards to a Telegram bot for interactive queries?

Add inline keyboards to a Telegram bot by utilizing Telegraf v4 integration patterns to create interactive user interfaces. This allows you to manage callback queries and process user selections efficiently.

Can I implement custom middleware for authentication in a Telegraf bot?

Implement custom middleware for authentication, rate limiting, and error handling in a Telegraf bot using the provided integration patterns. This supports adding custom logic before message processing.

Does this Telegram bot framework support downloading files sent by users?

The Telegram bot framework supports downloading files from Telegram and processing them locally. You can handle document and photo uploads to process user inputs like bug reports.

How do I structure a Telegram bot project to scale command handling?

Structure a Telegram bot project by organizing code into logical directories for commands, handlers, and types. This modular approach supports scalable development and efficient event management.