1. Go to this page and download the library: Download arhx/telegram-log-channel 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/ */
arhx / telegram-log-channel example snippets
'channels' => [
// ... other channels
'telegram' => [
'driver' => 'telegram',
'token' => env('TELEGRAM_LOG_BOT_TOKEN'),
'chat_id' => env('TELEGRAM_LOG_CHAT_ID'),
'level' => env('TELEGRAM_LOG_LEVEL', 'debug'), // Example of overriding the level
],
],