PHP code example of dbunt1tled / yii2-telegram-notify

1. Go to this page and download the library: Download dbunt1tled/yii2-telegram-notify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dbunt1tled / yii2-telegram-notify example snippets



    $client = new yii\httpclient\Client();
    $botTelegram = new TelegramNotify($tokenYourBot,$client);
    $botTelegram->sendMessage('Всем привет'); 

php composer.phar