Browse Source

update: fix telegram markdown

tokumeikoi 3 years ago
parent
commit
ce8b5dde28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/TelegramService.php

+ 1 - 1
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,