diff --git a/internal/pipe/telegram/telegram.go b/internal/pipe/telegram/telegram.go index 7ef62bdc775..160979cfe9e 100644 --- a/internal/pipe/telegram/telegram.go +++ b/internal/pipe/telegram/telegram.go @@ -46,6 +46,7 @@ func (Pipe) Announce(ctx *context.Context) error { } tm := api.NewMessage(ctx.Config.Announce.Telegram.ChatID, msg) + tm.ParseMode = "MarkdownV2" _, err = bot.Send(tm) if err != nil { return fmt.Errorf("announce: failed to announce to telegram: %w", err) diff --git a/www/docs/customization/announce/telegram.md b/www/docs/customization/announce/telegram.md index d5c9e6b8a86..08555cc022d 100644 --- a/www/docs/customization/announce/telegram.md +++ b/www/docs/customization/announce/telegram.md @@ -25,5 +25,7 @@ announce: message_template: 'Awesome project {{.Tag}} is out!' ``` +You can format your message using MarkdownV2, for reference, see the [Telegram Bot API](https://core.telegram.org/bots/api#markdownv2-style). + !!! tip Learn more about the [name template engine](/customization/templates/).