From bf918b9b3ca42654104c81187ca5eec130d5de1a Mon Sep 17 00:00:00 2001 From: Anatoly Medvedkov <32126+coding4food@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:40:54 +0300 Subject: [PATCH] Fix Telegram MarkdownV2 escaping Current implementation was missing '*' symbol. Signed-off-by: Anatoly Medvedkov <32126+coding4food@users.noreply.github.com> --- internal/notifier/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notifier/telegram.go b/internal/notifier/telegram.go index 532f6594d..1ccc38c6f 100644 --- a/internal/notifier/telegram.go +++ b/internal/notifier/telegram.go @@ -52,7 +52,7 @@ func (t *Telegram) Post(ctx context.Context, event eventv1.Event) error { // The telegram API requires that some special characters are escaped // in the message string. Docs: https://core.telegram.org/bots/api#formatting-options. func escapeString(str string) string { - chars := "\\.-_[]()~>`#+=|{}!" + chars := "\\.-_[]()~>`#+=|{}!*" for _, char := range chars { start := 0 idx := 0