fix br to one telegram may like more

This commit is contained in:
Umputun
2018-10-25 12:14:10 -05:00
parent b1a4d9b2da
commit 8f90af8343
+1 -1
View File
@@ -81,7 +81,7 @@ func (t *Telegram) Send(ctx context.Context, req request) error {
}
from = "<strong>" + from + "</strong>"
link := fmt.Sprintf(`<a href="%s">comment</a>`, req.comment.Locator.URL+uiNav+req.comment.ID)
msg := fmt.Sprintf("%s<br/>%s<br/>%s", from, req.comment.Text, link)
msg := fmt.Sprintf("%s<br>%s<br>%s", from, req.comment.Text, link)
u := fmt.Sprintf("%s%s/sendMessage?chat_id=@%s&text=%s&parse_mode=HTML&disable_web_page_preview=true",
t.apiPrefix, t.token, t.channelName, url.QueryEscape(msg))