Download the PHP package botasis/telegram-client without Composer
On this page you can find all versions of the php package botasis/telegram-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download botasis/telegram-client
More information about botasis/telegram-client
Files in botasis/telegram-client
Package telegram-client
Short Description Yet another PHP Telegram bot client
License BSD-3-Clause
Informations about the package telegram-client
Botasis Telegram Bot API Client
Overview
Botasis offers a lightweight and strictly PSR-compliant implementation of the Telegram Bot API. Designed for developers seeking a robust and advanced bot SDK, Botasis simplifies the creation and management of Telegram bots.
Explore our advanced SDK at botasis/runtime and access a ready-to-deploy application template at botasis/bot-template.
Quick Start
Ensure you have Composer installed and a bot token from BotFather.
Setup
-
Install the Package:
-
Install PSR HTTP Client and Message Factory: If you don't have preferences, use:
-
Create an API Client Instance: Either use your DI container or manually instantiate:
-
Send a Request: Example to send a "Hello" message:
$response
will contain the Telegram Bot API response data. Refer to the API specification for details.
Feature Highlights
Method-Specific Request Classes
Utilize strictly-typed classes for API requests. For instance:
Extending Functionality
Missing a method-specific request class? Extend the library:
- Contribute: Submit a PR with your implementation.
- Fallback: Use the generic
TelegramRequest
class.
This approach ensures immediate adaptability to any Telegram API updates.
Files uploading
Documentation in progress – stay tuned!
Error Handling
Documentation in progress – stay tuned!
All versions of telegram-client with dependencies
nyholm/psr7 Version ^1.8
php-http/multipart-stream-builder Version ^1.3
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0||^2.0
psr/log Version ^1.0.0||^2.0.0||^3.0.0
yiisoft/friendly-exception Version ^1.1