From a00a608355e7af72a3014ed749bc30db8a70b818 Mon Sep 17 00:00:00 2001 From: Kien Nguyen-Tuan Date: Wed, 23 Oct 2024 22:47:13 +0700 Subject: [PATCH] fix(telegram): passing ParseMode when sending message (#4027) Before commit [1], the message parse mode value is the same as bot parse mode. Therefore, we don't need to pass ParseMode whenever sending message. But after that commit, if we don't pass SendOpts's ParseMode, the library will use the default mode which is empty string "". [1] https://github.com/tucnak/telebot/commit/864bef4e4d3a60b8079db4fdb51cac2e779349cd Signed-off-by: Kien Nguyen --- notify/telegram/telegram.go | 1 + 1 file changed, 1 insertion(+) diff --git a/notify/telegram/telegram.go b/notify/telegram/telegram.go index fd617142..c74393fd 100644 --- a/notify/telegram/telegram.go +++ b/notify/telegram/telegram.go @@ -94,6 +94,7 @@ func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, err DisableNotification: n.conf.DisableNotifications, DisableWebPagePreview: true, ThreadID: n.conf.MessageThreadID, + ParseMode: n.conf.ParseMode, }) if err != nil { return true, err