Skip to content

Commit

Permalink
Cleanup BB code before sending to telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jul 23, 2018
1 parent 640acf5 commit 0b9c45e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ public function sendMessageToTelegram($params)
$signatureText = $statusSignature['signature'];
}

$params['msg']->msg = str_replace(array('[list]','[/list]','[*]','[b]','[/b]','[i]','[/i]','[u]','[/u]','[s]','[/s]'),array('','','','','','','','','','',''),$params['msg']->msg);

$data = [
'chat_id' => $tChat->tchat_id,
'text' => trim($params['msg']->msg) . $signatureText,
Expand Down

0 comments on commit 0b9c45e

Please sign in to comment.