Skip to content

Commit

Permalink
minor mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed May 6, 2024
1 parent cd85a3c commit ea4da4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions alert/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -51,9 +50,8 @@ func (tc *TelegramChannel) Send(note *Notification) error {
}

_, err = tc.bot.SendMessage(context.Background(), &bot.SendMessageParams{
ChatID: tc.Config.ChatId,
Text: msg,
ParseMode: models.ParseModeHTML,
ChatID: tc.Config.ChatId,
Text: msg,
})

return err
Expand Down

0 comments on commit ea4da4b

Please sign in to comment.