Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adlandh committed Sep 3, 2023
1 parent b843c14 commit 173281f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/post-forwarder/driven/telegram_message_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewTelegramMessageSender(cfg *config.Config) (*TelegramMessageSender, error
}

func (t TelegramMessageSender) Send(ctx context.Context, service, msg string) error {
fullMessage := fmt.Sprintf("*%s*:\n%s", bot.EscapeMarkdown(service), bot.EscapeMarkdownUnescaped(msg))
fullMessage := fmt.Sprintf("*%s*:\n%s", bot.EscapeMarkdown(service), bot.EscapeMarkdown(msg))
if len([]rune(fullMessage)) > MaxMessageLength {
fullMessage = fullMessage[:MaxMessageLength]
}
Expand Down

0 comments on commit 173281f

Please sign in to comment.