aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar emv33 <142946271+emv33@users.noreply.github.com> 2024-06-20 20:04:26 +0200
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-06-21 14:23:30 -0700
commitf98d5de484cc5e7831d74ddf6ccebdbb6072ea26 (patch)
tree5ca3e8c127122f625e4f55578775a3f9e8ef684b
parentee5e18ea9f06c69dc0e37ca077f82b5f315505e8 (diff)
downloadv2-f98d5de484cc5e7831d74ddf6ccebdbb6072ea26.tar.gz
v2-f98d5de484cc5e7831d74ddf6ccebdbb6072ea26.tar.zst
v2-f98d5de484cc5e7831d74ddf6ccebdbb6072ea26.zip
Telegram: add feed name to message
39d752c removed a link to the feed name to solve a web preview issue. This change brings back the feed name without the link, thus restoring the feed name without bringing back the issue. Fixes #2620
-rw-r--r--internal/integration/telegrambot/telegrambot.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/integration/telegrambot/telegrambot.go b/internal/integration/telegrambot/telegrambot.go
index d63ef560..e17e4b73 100644
--- a/internal/integration/telegrambot/telegrambot.go
+++ b/internal/integration/telegrambot/telegrambot.go
@@ -11,7 +11,8 @@ import (
func PushEntry(feed *model.Feed, entry *model.Entry, botToken, chatID string, topicID *int64, disableWebPagePreview, disableNotification bool, disableButtons bool) error {
formattedText := fmt.Sprintf(
- `<a href=%q>%s</a>`,
+ `<b>%s</b> - <a href=%q>%s</a>`,
+ feed.Title,
entry.URL,
entry.Title,
)