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] 864bef4e4d

Signed-off-by: Kien Nguyen <kiennt2609@gmail.com>
This commit is contained in:
Kien Nguyen-Tuan 2024-10-23 22:47:13 +07:00 committed by GitHub
parent 5979dff9dc
commit a00a608355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, err
DisableNotification: n.conf.DisableNotifications, DisableNotification: n.conf.DisableNotifications,
DisableWebPagePreview: true, DisableWebPagePreview: true,
ThreadID: n.conf.MessageThreadID, ThreadID: n.conf.MessageThreadID,
ParseMode: n.conf.ParseMode,
}) })
if err != nil { if err != nil {
return true, err return true, err