Не подтверждена Коммит 95c1ba56 создал по автору Alex's avatar Alex Зафиксировано автором GitHub
Просмотр файлов

Update manager.php

владелец aec1ad52
...@@ -67,13 +67,15 @@ class manager { ...@@ -67,13 +67,15 @@ class manager {
return true; return true;
} }
if(!empty($this->config('parsemode'))) { if($this->config('parsemode')=='HTML') {
$message = strip_tags($message,"<b><strong><i><em><a><u><ins><code><pre><blockquote><tg-spoiler><tg-emoji>"); $message = strip_tags($message,"<b><strong><i><em><a><u><ins><code><pre><blockquote><tg-spoiler><tg-emoji>");
} else {
$message = strip_tags($message);
} }
$message = mb_substr($message,0,4096,'UTF-8'); $message = mb_substr($message,0,4096,'UTF-8');
$response = $this->send_api_command('sendMessage', ['chat_id' => $chatid, 'text' => $message, $response = $this->send_api_command('sendMessage', ['chat_id' => $chatid, 'text' => $message,
'parse_mode' => $this->config('parsemode')]); 'parse_mode' => $this->config('parsemode')]);
return (!empty($response) && isset($response->ok) && ($response->ok == true)); return (!empty($response) && isset($response->ok) && ($response->ok == true));
} }
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать