From ce8b5dde28563a01a87d378f768c89dcf24ba61f Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 23 Dec 2021 14:25:05 +0800 Subject: [PATCH] update: fix telegram markdown --- app/Services/TelegramService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/TelegramService.php b/app/Services/TelegramService.php index 50958909..42942857 100644 --- a/app/Services/TelegramService.php +++ b/app/Services/TelegramService.php @@ -17,7 +17,7 @@ class TelegramService { public function sendMessage(int $chatId, string $text, string $parseMode = '') { if ($parseMode === 'markdown') { - $text = Markdown::parse($text); + $text = str_replace('_', '\_', $text); } $this->request('sendMessage', [ 'chat_id' => $chatId,