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:
parent
ee5e18ea9f
commit
f98d5de484
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue