Send Telegram Notifications with Laravel 9
Published in
3 min readMay 18, 2022
We will learn to send Telegram notifications with Laravel 9
Step 1. Install Telegram notification channel
Before you can send notifications via Telegram, you must install the Telegram notification channel via Composer:
composer require laravel-notification-channels/telegram
Step 2. Create your Telegram Bot
Open Telegram, look for the BotFather bot and say hello.
Select or type /newbot
choose a name and username and get your token.
Step 3. Setting up your Telegram Bot
Add telegram service into config/service.php
file.
# config/services.php
'telegram-bot-api' => [
'token' => env('TELEGRAM_BOT_TOKEN', 'YOUR BOT TOKEN HERE')
],
Add your token into environment file
# .env…