dbunt1tled / yii2-telegram-notify
Send Notify Trigger All Contacts
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-httpclient: *
This package is auto-updated.
Last update: 2024-03-26 00:56:32 UTC
README
Send Notify Trigger All Contacts
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dbunt1tled/yii2-telegram-notify "*"
or add
"dbunt1tled/yii2-telegram-notify": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $client = new yii\httpclient\Client(); $botTelegram = new TelegramNotify($tokenYourBot,$client); $botTelegram->sendMessage('Всем привет'); ?>