Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
f98d5de484
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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 {
 func PushEntry(feed *model.Feed, entry *model.Entry, botToken, chatID string, topicID *int64, disableWebPagePreview, disableNotification bool, disableButtons bool) error {
 	formattedText := fmt.Sprintf(
 	formattedText := fmt.Sprintf(
-		`<a href=%q>%s</a>`,
+		`<b>%s</b> - <a href=%q>%s</a>`,
+		feed.Title,
 		entry.URL,
 		entry.URL,
 		entry.Title,
 		entry.Title,
 	)
 	)