diff --git a/src/danog/MadelineProto/ApiWrappers/Start.php b/src/danog/MadelineProto/ApiWrappers/Start.php index d019d5d7e..44864a9a2 100644 --- a/src/danog/MadelineProto/ApiWrappers/Start.php +++ b/src/danog/MadelineProto/ApiWrappers/Start.php @@ -46,7 +46,7 @@ trait Start if (Magic::$isIpcWorker) { throw new Exception('Not inited!'); } - if ($this->getWebAPITemplate() === 'legacy') { + if (!$this->getWebAPITemplate()) { $this->setWebAPITemplate($settings->getTemplates()->getHtmlTemplate()); } $app = []; diff --git a/src/danog/MadelineProto/Wrappers/Start.php b/src/danog/MadelineProto/Wrappers/Start.php index a121b16ce..e1180a5d4 100644 --- a/src/danog/MadelineProto/Wrappers/Start.php +++ b/src/danog/MadelineProto/Wrappers/Start.php @@ -45,7 +45,7 @@ trait Start if (($this->getAuthorization()) === MTProto::LOGGED_IN) { return $this instanceof Client ? $this->getSelf() : $this->fullGetSelf(); } - if ($this->getWebTemplate() === 'legacy') { + if (!$this->getWebTemplate()) { $settings = $this->getSettings(); $this->setWebTemplate($settings->getTemplates()->getHtmlTemplate()); } diff --git a/src/danog/MadelineProto/Wrappers/Templates.php b/src/danog/MadelineProto/Wrappers/Templates.php index d1f851682..e60c48d50 100644 --- a/src/danog/MadelineProto/Wrappers/Templates.php +++ b/src/danog/MadelineProto/Wrappers/Templates.php @@ -80,7 +80,7 @@ trait Templates * Web template. * */ - private string $webTemplate = 'legacy'; + private string $webTemplate = ''; /** * Format message according to template. *