efremovp / simple-telegram-send
Отправка сообщений в Telegram.
1.3
2024-12-09 08:33 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-03-09 09:11:09 UTC
README
Вводим id чата и текст сообщения. Которое отправляется в чат.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist efremovp/simple-telegram-send "*"
or add
"efremovp/simple-telegram-send": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
use efremovP\telegram\TelegramBot; $telegram = new TelegramBot('token_bot'); $chat_id = 123456; $telegram->send('Привет Бот!', $chat_id);