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

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

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

tdlib/telegram-bot-api

0
View on GitHub↗
4,296 星标·853 分支·C++·BSL-1.0·5 次浏览core.telegram.org/bots↗

Telegram Bot Api

该项目是一个自托管的 Telegram Bot API 服务器,实现了 REST 网关以独立于官方云基础设施管理机器人。它充当消息平台中间件,利用转换层通过基于 TDLib 的核心将高级 REST API 调用转换为低级函数。

该服务器允许本地托管,从而能够移除云端文件上传和下载的大小限制,并使用任意本地 IP 地址和端口进行 Webhook 交付。它提供了一种用于处理大文件的本地文件系统存储机制,并支持基于会话的状态持久化,以促进机器人实例在服务器环境之间的迁移。

该系统涵盖了广泛的机器人功能,包括富媒体、交互式投票和 HTML5 游戏的交付,以及托管微型应用程序。它包括用于商业账户自动化、论坛主题组织和货币化功能(如支付处理和订阅管理)的工具。此外还提供了用于聊天成员管理、用户验证和批量广播协调的管理实用程序。

该服务器源码可编译为适用于各种操作系统的二进制文件,以实现本地部署。

Features

  • Bot API Server Self-Hosting - Implements a self-hosted HTTP server to manage bot operations independently of cloud infrastructure.
  • Local File Storage - Uses local file system storage to handle large file transfers beyond cloud-imposed limits.
  • REST Gateways - Implements a translation layer that converts high-level REST API calls into low-level TDLib functions.
  • Bot File Management - Coordinates the retrieval of file information and prepares media files for download from the server.
  • Messaging Middleware - Functions as a bridge translating external HTTP requests into platform-specific actions for bots.
  • Telegram Webhook Receivers - Configures specific URLs to receive real-time HTTPS POST updates whenever an event occurs.
  • Messaging Protocol Cores - Utilizes a low-level client library to handle messaging network protocols, encryption, and state.
  • Transfer Limit Overrides - Removes official cloud restrictions on upload and download sizes when running the API server locally.
  • Long-Polling Event Pushing - Uses a request-response mechanism that holds connections open until new events trigger a response.
  • Rich Media Transmission - Transmits photos, videos, audio, documents, animations, and voice notes to target chats via the API.
  • Update Polling - Implements a long-polling mechanism to retrieve incoming updates from the server in a continuous loop.
  • Telegram Bot Frameworks - Implements the core API gateway necessary for building interactive agents on the Telegram platform.
  • Text Message Transmission - Implements the transmission of formatted text messages and interactive keyboards through the bot API.
  • Standardized Event Webhook Delivery - Implements a push-based system for delivering real-time event updates via HTTPS POST requests.
  • Protocol Translation Layers - Provides a translation layer that converts high-level REST API calls into low-level TDLib functions.
  • Rich Messenger Interfaces - Supports the creation of mini apps, HTML5 games, and complex polls to provide rich user interfaces.
  • Chatbot Monetization - Processes payments, manages subscriptions, and handles digital gifts within the chat interface.
  • Payment Processing Systems - Processes invoices, creates payment links, and manages refunds using virtual currency or third-party providers.
  • Direct Local Path Access - Allows direct access to files via local paths to eliminate the need for separate HTTP download requests.
  • Session State Persistence - Persists bot states and user sessions in local directories to facilitate server migration.
  • Session Migration - Enables the transfer of bot instances across local server environments by moving session subdirectories.
  • Bulk Senders - Sends high-volume messages to subscribers using a paid system to bypass standard rate limits.
  • Business Account Configuration - Provides capabilities to handle profile details, settings, and messaging on behalf of connected business accounts.
  • Business Account Integration - Enables the integration of bots with professional business accounts to automate messages and profile settings.
  • Custom Webhook Delivery - Provides the ability to route webhooks using local IP addresses to bypass cloud network restrictions.
  • Webhook Connectivity Tuning - Enables the use of arbitrary local IP addresses and ports while increasing maximum concurrent webhook connections.
  • Inline Query Processors - Processes inline search queries to provide interactive result lists for users to send.
  • Mini Application Hosting - Supports embedding web-based mini applications with access to local storage and geolocation.
  • Mini App Runtimes - Provides a runtime environment for hosting custom JavaScript mini-applications embedded within the messenger.

Star 历史

tdlib/telegram-bot-api 的 Star 历史图表tdlib/telegram-bot-api 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

常见问题解答

tdlib/telegram-bot-api 是做什么的?

该项目是一个自托管的 Telegram Bot API 服务器,实现了 REST 网关以独立于官方云基础设施管理机器人。它充当消息平台中间件,利用转换层通过基于 TDLib 的核心将高级 REST API 调用转换为低级函数。

tdlib/telegram-bot-api 的主要功能有哪些?

tdlib/telegram-bot-api 的主要功能包括:Bot API Server Self-Hosting, Local File Storage, REST Gateways, Bot File Management, Messaging Middleware, Telegram Webhook Receivers, Messaging Protocol Cores, Transfer Limit Overrides。

tdlib/telegram-bot-api 有哪些开源替代品?

tdlib/telegram-bot-api 的开源替代品包括: tucnak/telebot — Telebot is a framework for building interactive bots using the Telegram Bot API. It provides a type-safe API wrapper… tdlib/td — This project is a cross-platform messaging SDK and client development library used to build custom Telegram… danog/madelineproto — MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram… kotlin-telegram-bot/kotlin-telegram-bot — This library is a type-safe Kotlin framework designed for building automated messaging services on the Telegram… pyrogram/pyrogram — Pyrogram is an asynchronous Python framework for interacting with the Telegram MTProto API. It serves as both a bot… go-telegram-bot-api/telegram-bot-api — This is a Go package that wraps the Telegram Bot API, providing a client library for building automated bot…

Telegram Bot Api 的开源替代方案

相似的开源项目,按与 Telegram Bot Api 的功能重合度排序。
  • 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
  • tdlib/tdtdlib 的头像

    tdlib/td

    8,506在 GitHub 上查看↗

    This project is a cross-platform messaging SDK and client development library used to build custom Telegram applications. It functions as a comprehensive framework that manages network encryption, local data storage, and API communication, providing a C-compatible JSON interface that allows integration with any programming language. The library distinguishes itself by providing a full database manager for encrypted local caching and synchronized state, alongside a dedicated bot framework for creating interactive bots with business account integration. It enables the implementation of speciali

    C++cross-platformlibrarytelegram
    在 GitHub 上查看↗8,506
  • danog/madelineprotodanog 的头像

    danog/MadelineProto

    3,344在 GitHub 上查看↗

    MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram API using the MTProto protocol, the same protocol used by official Telegram clients. It functions as both a Telegram bot SDK and a userbot automation library, enabling PHP applications to connect to Telegram as either a bot account or a regular user account, sending and receiving messages, media, and other data directly without relying on the Bot API intermediary. The library is built on an event-driven architecture with Amp v3 fiber-based concurrency, allowing for non-blockin

    PHPamphpasyncbot
    在 GitHub 上查看↗3,344
  • kotlin-telegram-bot/kotlin-telegram-botkotlin-telegram-bot 的头像

    kotlin-telegram-bot/kotlin-telegram-bot

    973在 GitHub 上查看↗

    This library is a type-safe Kotlin framework designed for building automated messaging services on the Telegram platform. It provides a comprehensive toolkit for developers to create interactive bots that handle incoming updates, manage chat interactions, and execute automated workflows on the JVM. By abstracting the underlying network communication, the library allows for the development of sophisticated messaging applications using native language features. The framework distinguishes itself through a functional approach to API interaction, utilizing algebraic data types to represent succes

    Kotlinhacktoberfestkotlintelegram
    在 GitHub 上查看↗973
  • 查看 Telegram Bot Api 的所有 30 个替代方案→