Browse Source

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
emv33 1 year ago
parent
commit
f98d5de484
1 changed files with 2 additions and 1 deletions
  1. 2 1
      internal/integration/telegrambot/telegrambot.go

+ 2 - 1
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,
 	)