Skip to content

Commit

Permalink
fix(telegram): passing ParseMode when sending message (#4027)
Browse files Browse the repository at this point in the history
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] tucnak/telebot@864bef4

Signed-off-by: Kien Nguyen <[email protected]>
  • Loading branch information
ntk148v authored Oct 23, 2024
1 parent 5979dff commit a00a608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notify/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a00a608

Please sign in to comment.