We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ef709 commit 87eaa3aCopy full SHA for 87eaa3a
src/Symfony/Component/Notifier/Bridge/Telegram/TelegramTransport.php
@@ -79,8 +79,9 @@ protected function doSend(MessageInterface $message): SentMessage
79
80
$options['text'] = $message->getSubject();
81
82
- if (!isset($options['parse_mode'])) {
+ if (!isset($options['parse_mode']) || $options['parse_mode'] == TelegramOptions::PARSE_MODE_MARKDOWN_V2) {
83
$options['parse_mode'] = TelegramOptions::PARSE_MODE_MARKDOWN_V2;
84
+ $options['text'] = str_replace('.', '\.', $message->getSubject());
85
}
86
87
$response = $this->client->request('POST', $endpoint, [
0 commit comments