Skip to content

Commit

Permalink
Merge pull request #776 from coding4food/734-fix-telegram-markup
Browse files Browse the repository at this point in the history
Fix Telegram MarkdownV2 escaping
  • Loading branch information
stefanprodan authored Mar 25, 2024
2 parents 440aad8 + bf918b9 commit 20eee15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/notifier/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (t *Telegram) Post(ctx context.Context, event eventv1.Event) error {
// The telegram API requires that some special characters are escaped
// in the message string. Docs: https://core.telegram.org/bots/api#formatting-options.
func escapeString(str string) string {
chars := "\\.-_[]()~>`#+=|{}!"
chars := "\\.-_[]()~>`#+=|{}!*"
for _, char := range chars {
start := 0
idx := 0
Expand Down

0 comments on commit 20eee15

Please sign in to comment.