PHP code example of softok2 / telegram-notifications

1. Go to this page and download the library: Download softok2/telegram-notifications 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/ */

    

softok2 / telegram-notifications example snippets


return [
    'bot_token' => env('SOFTOK2_TELEGRAM_BOT_TOKEN', 'Your bot token here'),
    'chat_id' => env('SOFTOK2_TELEGRAM_CHAT_ID', 'Your chat ID here'),
];

 \Softok2\TelegramNotification\Facades\TelegramNotification::sendException($exception)
bash
php artisan vendor:publish --tag="telegram-notifications-config"