mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fixup "Support: Send new ticket notifications to Telegram"
Excuse me
This commit is contained in:
parent
d7e3d2d77d
commit
7cbb3afcd7
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ final class SupportPresenter extends OpenVKPresenter
|
|||
|
||||
$helpdeskChat = OPENVK_ROOT_CONF["openvk"]["credentials"]["telegram"]["helpdeskChat"];
|
||||
if($helpdeskChat) {
|
||||
$serverUrl = ovk_scheme(true) . $_SERVER["SERVER_NAME"];
|
||||
$ticketText = ovk_proc_strtr($this->postParam("text"), 1500);
|
||||
$telegramText = "<b>📬 Новый тикет!</b>\n\n";
|
||||
$telegramText .= "<a href='$serverUrl/support/reply/{$ticket->getId()}'>{$ticket->getName()}</a>\n";
|
||||
|
|
Loading…
Reference in a new issue