diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-04-05 18:13:24 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-04-05 18:13:24 +0300 |
commit | eb63d61c5b2f09382489fc5d1f2ce3c14c324d2c (patch) | |
tree | c7afcf8261f6515ee36f9fed7376efa5425a5393 /app/app.go | |
parent | 12cd485899f55058339faeca0f8523fbb0d2b334 (diff) |
Diffstat (limited to 'app/app.go')
-rw-r--r-- | app/app.go | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -90,8 +90,7 @@ func (a *App) processItem(item *gofeed.Item) error { s = strings.ReplaceAll(s, "<br />", "\n") s = p.Sanitize(s) s = strings.Trim(s, "\n\t ") - - str := fmt.Sprintf("<b>%s</b>\n%s", item.Title, s) + str := fmt.Sprintf("<b>%s</b>\n%s\n\nОригинал: %s", item.Title, s, item.Link) for _, group := range a.config.Telegram.TargetGroups { switch { case item.Image != nil: @@ -111,13 +110,6 @@ func (a *App) processItem(item *gofeed.Item) error { return err } } - msg := tgbotapi.NewMessage( - group, - fmt.Sprintf("Оригинал: %s", item.Link), - ) - if _, err := a.telegram.Send(msg); err != nil { - return err - } } return nil |