Registry /
messaging / laravel-notification-channels-telegram
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
TelegramChannel
✓ use NotificationChannels\Telegram\TelegramChannel;
Send a Telegram notification via Laravel's notification system
use NotificationChannels\Telegram\TelegramChannel;
use NotificationChannels\Telegram\TelegramMessage;
use Illuminate\Notifications\Notification;
class InvoicePaid extends Notification
{
public function via($notifiable)
{
return [TelegramChannel::class];
}
public function toTelegram($notifiable)
{
return TelegramMessage::create()
->to('123456789')
->content('Your invoice has been paid!');
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.