subject("Last Hour Cloud: 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(): string { $message = "Last Hour Cloud: A resource ({$this->name}) has been restarted automatically on {$this->server->name}"; return $message; } public function toTelegram(): array { $message = "Last Hour Cloud: A resource ({$this->name}) has been restarted automatically on {$this->server->name}"; $payload = [ 'message' => $message, ]; if ($this->url) { $payload['buttons'] = [ [ [ "text" => "Check Proxy in Last Hour Cloud", "url" => $this->url ] ] ]; } return $payload; } }