From bc510f8c8ee2472aa754e948c8fe446e480d18b5 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 25 Oct 2018 12:22:59 -0500 Subject: [PATCH] replace br to \n for telegram --- backend/app/notify/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/notify/telegram.go b/backend/app/notify/telegram.go index bc2b129e..08f2c06f 100644 --- a/backend/app/notify/telegram.go +++ b/backend/app/notify/telegram.go @@ -81,7 +81,7 @@ func (t *Telegram) Send(ctx context.Context, req request) error { } from = "" + from + "" link := fmt.Sprintf(`comment`, req.comment.Locator.URL+uiNav+req.comment.ID) - msg := fmt.Sprintf("%s
%s
%s", from, req.comment.Text, link) + msg := fmt.Sprintf("%s\n%s\n%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))