awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
telegraf avatar

telegraf/telegraf

0
View on GitHub↗
9,158 星标·950 分支·TypeScript·MIT·5 次浏览telegraf.js.org↗

Telegraf

Telegraf is a Node.js framework and typed API wrapper for building interactive chat agents on the Telegram platform. It provides a structured environment for developing automated agents that interface with the Telegram Bot API to process and respond to user messages.

The framework uses a middleware-based request router to process incoming events through a customizable chain of handlers. This architecture allows for dynamic command routing and the use of a context-object pattern to pass updates and API methods through the processing pipeline.

The system supports multiple event delivery methods, including long-polling event loops and webhook integrations for real-time HTTP push notifications. It includes capabilities for multimedia file transmission and centralized error handling middleware to manage exceptions and prevent process crashes.

Features

  • Chat Bot Frameworks - Provides a structured Node.js framework for building automated agents that interact with users on the Telegram platform.
  • Chatbot Command Interfaces - Provides frameworks for defining and executing slash-commands and text-based triggers within Telegram.
  • Messaging Middleware - Utilizes a messaging middleware layer to route and process message streams before they reach the final handler.
  • Middleware-Based Request Pipelines - Uses a modular chain of pluggable middleware components to intercept and process incoming bot requests.
  • Messaging Update Processors - Routes incoming Telegram API updates through a customizable sequence of handlers to execute business logic.
  • Telegram Bot Frameworks - Provides a comprehensive Node.js framework and typed API wrapper for developing interactive Telegram bots.
  • Command Routing Architectures - Matches incoming text patterns and commands against registered handler functions to trigger specific bot logic.
  • Event Middleware Systems - Uses an architectural pattern of event middleware to intercept and process bot updates through a chain of handlers.
  • Slash Command Handlers - Implements mechanisms for parsing and executing automated responses triggered by slash commands in chat interfaces.
  • Messaging Bot Wrappers - Provides a typed client library that maps Telegram Bot API methods to structured JavaScript objects.
  • Webhook Integrations - Supports real-time event delivery through configurable webhook integrations and long-polling loops.
  • Messaging Multimedia Transmission - Enables transmission of documents, images, videos, and voice notes using file paths, URLs, buffers, or streams.
  • Automated Chat Media Delivery - Automates the sending of multimedia content to Telegram users via buffers, streams, or URLs.
  • Webhook Configuration - Provides interfaces for configuring webhook endpoints to receive real-time push notifications from Telegram.
  • Integrated Webhook Servers - Integrates built-in servers to receive and process real-time Telegram updates via HTTP push notifications.
  • Long-Polling Event Pushing - Implements a long-polling loop that continuously requests new updates from the Telegram API server.
  • Webhook Delivery Systems - Supports real-time event delivery via HTTP POST requests from the Telegram API provider.
  • Error Handling Middleware - Includes centralized middleware to intercept exceptions during the request lifecycle and prevent process crashes.
  • Request Middleware - Provides middleware to intercept the request-response cycle for extending context and managing execution flow.
  • Context Object Passing - Implements a context-object pattern to encapsulate update data and API methods passed through the processing chain.
  • Global Error Handlers - Implements global exception handlers to manage recovery and prevent crashes in the bot process.
  • Bot Development Frameworks - Modern framework for Telegram bots.
  • Bot Frameworks - JavaScript and TypeScript framework for bots.

Star 历史

telegraf/telegraf 的 Star 历史图表telegraf/telegraf 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Telegraf 的开源替代方案

相似的开源项目,按与 Telegraf 的功能重合度排序。
  • tucnak/telebottucnak 的头像

    tucnak/telebot

    4,565在 GitHub 上查看↗

    Telebot is a framework for building interactive bots using the Telegram Bot API. It provides a type-safe API wrapper and an asynchronous event handler to manage messages, commands, and user interactions. The project features a middleware-based request interception system and pattern-based event routing to map triggers to custom logic. It includes a dedicated inline query engine for generating real-time suggested results and an interactive keyboard builder for creating custom reply and inline buttons. The framework covers a broad range of capabilities, including rich media management for albu

    Go
    在 GitHub 上查看↗4,565
  • yagop/node-telegram-bot-apiyagop 的头像

    yagop/node-telegram-bot-api

    9,107在 GitHub 上查看↗

    This project is a library for Telegram bot development, enabling the creation of automated agents that respond to user commands and messages using the Telegram Bot API. It facilitates Telegram content automation by programmatically sending rich media, managing sticker sets, and publishing profile stories. The project supports real-time event handling through both webhook and long-polling mechanisms. It also provides a specialized interface for Telegram payment integration to process digital transactions, create invoices, and handle refunds. Broad capability areas include automated chat manag

    JavaScriptapibotbot-framework
    在 GitHub 上查看↗9,107
  • eternnoir/pytelegrambotapieternnoir 的头像

    eternnoir/pyTelegramBotAPI

    8,684在 GitHub 上查看↗

    pyTelegramBotAPI is a Python framework and API wrapper designed for building bots that interact with the Telegram Bot API. It provides a toolkit for managing bot lifecycles through both synchronous and asynchronous request patterns. The framework is distinguished by a routing system that uses custom filters and middleware pipelines to direct incoming updates to specific handlers. It includes a finite state machine manager to track user progress through multi-step conversations and a retry-based system to handle server-side rate limiting. The library covers a broad range of capabilities, incl

    Pythonbot-apipython-apitelegram
    在 GitHub 上查看↗8,684
  • rubenlagus/telegrambotsrubenlagus 的头像

    rubenlagus/TelegramBots

    5,467在 GitHub 上查看↗

    TelegramBots is a bot framework for Java and a client for the Telegram messaging platform. It provides the tools necessary to build automated assistants that communicate with the messaging API to send and receive messages and manage user interactions. The project enables the creation of conversational interfaces through custom keyboards and inline buttons. It supports the delivery of multimedia content, allowing bots to send and receive documents, photos, and other media files. The framework handles bot updates via polling or webhooks and supports the implementation of automated messaging wo

    Java
    在 GitHub 上查看↗5,467
查看 Telegraf 的所有 30 个替代方案→

常见问题解答

telegraf/telegraf 是做什么的?

Telegraf is a Node.js framework and typed API wrapper for building interactive chat agents on the Telegram platform. It provides a structured environment for developing automated agents that interface with the Telegram Bot API to process and respond to user messages.

telegraf/telegraf 的主要功能有哪些?

telegraf/telegraf 的主要功能包括:Chat Bot Frameworks, Chatbot Command Interfaces, Messaging Middleware, Middleware-Based Request Pipelines, Messaging Update Processors, Telegram Bot Frameworks, Command Routing Architectures, Event Middleware Systems。

telegraf/telegraf 有哪些开源替代品?

telegraf/telegraf 的开源替代品包括: tucnak/telebot — Telebot is a framework for building interactive bots using the Telegram Bot API. It provides a type-safe API wrapper… yagop/node-telegram-bot-api — This project is a library for Telegram bot development, enabling the creation of automated agents that respond to user… eternnoir/pytelegrambotapi — pyTelegramBotAPI is a Python framework and API wrapper designed for building bots that interact with the Telegram Bot… rubenlagus/telegrambots — TelegramBots is a bot framework for Java and a client for the Telegram messaging platform. It provides the tools… python-telegram-bot/python-telegram-bot — This project is an asynchronous messaging framework designed for building interactive applications on the Telegram… tdlib/telegram-bot-api — This project is a self-hosted Telegram Bot API server that implements a REST gateway to manage bots independently of…