onQueue('high'); } public function via(object $notifiable): array { $channels = []; $isDiscordEnabled = data_get($notifiable, 'discord_enabled'); $isTelegramEnabled = data_get($notifiable, 'telegram_enabled'); if ($isDiscordEnabled) { $channels[] = DiscordChannel::class; } if ($isTelegramEnabled) { $channels[] = TelegramChannel::class; } return $channels; } public function toDiscord(): DiscordMessage { return new DiscordMessage( title: 'Coolify: General Notification', description: $this->message, color: DiscordMessage::infoColor(), ); } public function toTelegram(): array { return [ 'message' => $this->message, ]; } }