{"repo":"phptg/bot-api","free":true,"listed":false,"github":"https://github.com/phptg/bot-api","clone":"git clone https://github.com/phptg/bot-api.git","description":"PHP library to interact with Telegram Bot API","language":"PHP","stars":129,"topics":["telegam-bot-api","telegram","telegram-bot"],"license":"BSD-3-Clause","category":"chat-messaging","readme_excerpt":"Telegram Bot API for PHP The package provides a simple and convenient way to interact with the Telegram Bot API. ✔️ Telegram Bot API 10.2 (July 14, 2026) is fully supported . ♻️ Zero dependencies — no third-party libraries, only native PHP. [!IMPORTANT] This project is developed and maintained by Sergei Predvoditelev. Community support helps keep the project actively developed and well maintained. You can support the project using the following services: - Boosty - CloudTips Thank you for your support ❤️ Requirements - PHP (64-bit) 8.2 - 8.5. Installation The package can be installed with Composer: General usage To make requests to the Telegram Bot API, you need to create an instance of the TelegramBotApi class. Now you can use the $api instance to interact with the Telegram Bot API. Method names are the same as in the Telegram Bot API documentation. For example: The result will be either a FailResult instance (occurring on an error) or an object of the corresponding type (occurring on success). For example: Documentation TelegramBotApi TelegramBotApi constructor parameters: - $token (required) — Telegram bot authentication token; - $baseUrl — the base URL for Telegram Bot API requests (default https://api.telegram.org ). - $transport — the transport to make requests to Telegram Bot API (cURL or native transport will be used by default). - $logger — the PSR-3 compatible logger to log requests to Telegram Bot API and response handling errors. See logging for more information. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/phptg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phptg/bot-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}