subject("Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}"); $mail->view('emails.container-restarted', [ 'containerName' => $this->name, 'serverName' => $this->server->name, 'url' => $this->url, ]); return $mail; } public function toDiscord(): DiscordMessage { $message = new DiscordMessage( title: "Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}", description: 'Please check the output below for more information.', color: DiscordMessage::infoColor(), ); return $message; } public function toTelegram(): array { $message = "Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}"; $payload = [ 'message' => $message, ]; if ($this->url) { $payload['buttons'] = [ [ [ 'text' => 'Check Proxy in Coolify', 'url' => $this->url, ], ], ]; } return $payload; } }