Skip to content

Commit

Permalink
fix markdown format (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir authored Jul 26, 2024
1 parent fa73cdd commit c2fc1f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/providers/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package telegram

import (
"fmt"
"strings"

"github.com/containrrr/shoutrrr"
"github.com/pkg/errors"
Expand Down Expand Up @@ -49,7 +48,6 @@ func (p *Provider) Send(message, CliFormat string) error {
pr.TelegramParseMode = "None"
}
url := fmt.Sprintf("telegram://%s@telegram?channels=%s&parsemode=%s", pr.TelegramAPIKey, pr.TelegramChatID, pr.TelegramParseMode)
msg = strings.ReplaceAll(msg, "_", "\\_")
err := shoutrrr.Send(url, msg)
if err != nil {
err = errors.Wrap(err, fmt.Sprintf("failed to send telegram notification for id: %s ", pr.ID))
Expand Down

0 comments on commit c2fc1f7

Please sign in to comment.