PHP code example of vblinden / laravel-telegram-alerts
1. Go to this page and download the library: Download vblinden/laravel-telegram-alerts 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/ */
vblinden / laravel-telegram-alerts example snippets
use Vblinden\TelegramAlerts\Facades\TelegramAlert
TelegramAlert::message("You have a new subscriber to the {$newsletter->name} newsletter!")
TelegramAlert::message('Hello from your app!');
TelegramAlert::to('channel-id')->to('user-id')->message('Hello from your app!');
bash
php artisan vendor:publish --tag="laravel-telegram-alerts-config"