You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useNotificationChannels\Telegram\TelegramChannelasTelegramChannel;
'notifications' => [
'notifications' => [
\App\Notifications\BackupHasFailedNotification::class => [TelegramChannel::class],
\App\Notifications\BackupWasSuccessfulNotification::class => [TelegramChannel::class],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => [''],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => [''],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => [''],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => [''],
],
/* * Here you can specify the notifiable to which the notifications should be sent. The default * notifiable will use the variables specified in this config file. */'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
'telegram' => [
'token' => env('TELEGRAM_BOT_TOKEN'),
'chat_id' => env('TELEGRAM_CHAT_ID'),
],
> php artisan backup:run --only-db
Starting backup...
Dumping database radiuscrm...
Determining files to backup...
Zipping 1 files and directories...
Created zip containing 1 files and directories. Size is 1.11 MB
Copying zip to disk named local...
Successfully copied zip to disk named local.
**Sending notification failed**
Backup completed!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
"laravel/framework": "^11.9.2",
"spatie/laravel-backup": "^9.0.3"
"laravel-notification-channels/telegram": "^5.0",
Sending notification failed to my telegram group.
My config/backup.php
app/Notifications/BackupWasSuccessfulNotification.php
php artisan backup:run --only-db failed!
Beta Was this translation helpful? Give feedback.
All reactions