A pure PHP library for building Telegram bots using the official Bot API, supporting webhooks, getUpdates, and full API coverage.
PHP Telegram Bot is a pure PHP library that provides a complete interface to the Telegram Bot API, allowing developers to build and manage Telegram bots. It handles all bot interactions, from sending messages and media to managing channels and processing inline queries, solving the need for a robust, extensible bot framework in PHP.
PHP developers looking to create Telegram bots for automation, customer service, notifications, or interactive applications, especially those who prefer a self-hosted, library-based approach over SaaS bot platforms.
Developers choose this library for its full compliance with the official Telegram Bot API, extensible command system, and the ability to self-host with database integration, offering more control and customization compared to cloud-based bot services.
PHP Telegram Bot based on the official Telegram Bot API
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports all Telegram Bot API 7.1 methods and types, including inline queries and keyboards, ensuring comprehensive bot functionality as stated in the README.
Allows easy creation of custom commands and leverages predefined admin commands for bot management, with configuration options detailed in the Commands section.
Enables persistent storage of messages, users, and chats in MySQL, facilitating advanced features like conversation handling and data analysis, with setup instructions provided.
Supports both webhook (with HTTPS) and getUpdates methods, offering deployment flexibility; the README compares these options in a table for easy decision-making.
The project is officially on hold, meaning no active maintenance, bug fixes, or updates to newer Telegram API versions, as highlighted in the large notice at the top of the README.
Requires configuring webhooks with HTTPS, database setup for getUpdates, and Composer dependency management, which can be cumbersome for developers new to bot development or PHP.
For optimal performance with getUpdates, MySQL database is recommended or required, adding infrastructure overhead and potential compatibility issues, as noted in the installation guide.