p to br in telegram formatter

This commit is contained in:
Umputun
2018-10-25 12:05:51 -05:00
parent 092161ff6f
commit b1a4d9b2da
+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<p/>%s<p/>%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))