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
This commit is contained in:
emv33 2024-06-20 20:04:26 +02:00 committed by Frédéric Guillot
parent ee5e18ea9f
commit f98d5de484
1 changed files with 2 additions and 1 deletions

View File

@ -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,
)