PHP code example of sergeich5 / laravel-telegram-logs

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

    

sergeich5 / laravel-telegram-logs example snippets


'telegram' => [
    'driver' => 'custom',
    'via'    => \Sergeich5\LaravelTelegramLogs\TelegramLogger::class,
    'level' => 'debug',
    
    // Telegram BOT_ID and TOKEN colon separated
    'token' => 'BOT_ID:BOT_TOKEN',
    
    // Telegram Chat Id
    'chat_id' => '12345678',
    
    // int|null to send message to specific chat thread, see: https://core.telegram.org/api/threads
    'thread_id' => '123',
],
bash
php artisan tg_logs:updates {channel_name}