pashkevich-s-d / trainee-telegram-bot-client
Telegram bot client example
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pashkevich-s-d/trainee-telegram-bot-client
Requires
- symfony/dependency-injection: ^6.0
- symfony/http-client: ^6.0
- symfony/http-foundation: ^6.0
- symfony/mime: ^6.0
This package is not auto-updated.
Last update: 2025-12-21 12:20:17 UTC
README
Telegram bot client example
Description
This project can be used as an example of creating packages and installing them using composer.
It can be useful for those who are learning PHP and related technologies, or for those who are teaching students.
Example
Add current package:
composer require pashkevich-s-d/trainee-telegram-bot-client
Then:
use \PashkevichSD\TraineeTelegramBotClient\Service\TelegramBotClient;
use \PashkevichSD\TraineeTelegramBotClient\Model\Request\Message;
$telegramBotClient = new TelegramBotClient('YourTelegramBotToken');
To be able to get updates:
$telegramBotClient->getUpdates();
To be able to send message:
telegramBotClient->sendMessage((new Message())->setChatId($chatId)->setText($message));