Browse Source

Add link for post

main
parent
commit
69140cfe6a
  1. 3
      main.go

3
main.go

@ -178,7 +178,8 @@ func (config Config) RunSend() { @@ -178,7 +178,8 @@ func (config Config) RunSend() {
bot.Debug = config.Telegram.SendDebug
s := "<b>" + string(v.Title) + "</b>\n" + html.UnescapeString(string(v.Description)) +
"\nhttps://t.me/iv?url=" + v.Link + "&rhash=da76512d0ff2a2"
"\nhttps://t.me/iv?url=" + v.Link + "&rhash=da76512d0ff2a2" +
"\n\nСсылка на пост: " + v.Link
msg := tgbotapi.NewMessage(config.Telegram.ChatId, s)
msg.ParseMode = "Html"
_, err = bot.Send(msg)

Loading…
Cancel
Save