awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
tdlib avatar

tdlib/telegram-bot-api

0
View on GitHub↗
4,296 stars·853 forks·C++·BSL-1.0·2 viewscore.telegram.org/bots↗

Telegram Bot Api

This project is a self-hosted Telegram Bot API server that implements a REST gateway to manage bots independently of official cloud infrastructure. It functions as messaging platform middleware, utilizing a translation layer to convert high-level REST API calls into low-level functions via a TDLib-based core.

The server allows for local hosting, which enables the removal of cloud file size limits for uploads and downloads and the use of arbitrary local IP addresses and ports for webhook delivery. It provides a local file system storage mechanism for handling large files and supports session-based state persistence to facilitate the migration of bot instances between server environments.

The system covers a broad range of bot capabilities, including the delivery of rich media, interactive polls, and HTML5 games, as well as the hosting of mini applications. It includes tools for business account automation, forum topic organization, and monetization features such as payment processing and subscription management. Administrative utilities are also provided for chat member management, user verification, and bulk broadcast coordination.

The server source code can be compiled into a binary for various operating systems to enable local deployment.

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 history

Star history chart for tdlib/telegram-bot-apiStar history chart for tdlib/telegram-bot-api

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Telegram Bot Api

Similar open-source projects, ranked by how many features they share with Telegram Bot Api.
  • tucnak/telebottucnak avatar

    tucnak/telebot

    4,565View on 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
    View on GitHub↗4,565
  • tdlib/tdtdlib avatar

    tdlib/td

    8,506View on 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
    View on GitHub↗8,506
  • danog/madelineprotodanog avatar

    danog/MadelineProto

    3,344View on 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
    View on GitHub↗3,344
  • kotlin-telegram-bot/kotlin-telegram-botkotlin-telegram-bot avatar

    kotlin-telegram-bot/kotlin-telegram-bot

    973View on 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
    View on GitHub↗973
See all 30 alternatives to Telegram Bot Api→

Frequently asked questions

What does tdlib/telegram-bot-api do?

This project is a self-hosted Telegram Bot API server that implements a REST gateway to manage bots independently of official cloud infrastructure. It functions as messaging platform middleware, utilizing a translation layer to convert high-level REST API calls into low-level functions via a TDLib-based core.

What are the main features of tdlib/telegram-bot-api?

The main features of tdlib/telegram-bot-api are: Bot API Server Self-Hosting, Local File Storage, REST Gateways, Bot File Management, Messaging Middleware, Telegram Webhook Receivers, Messaging Protocol Cores, Transfer Limit Overrides.

What are some open-source alternatives to tdlib/telegram-bot-api?

Open-source alternatives to tdlib/telegram-bot-api include: 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…