From aac58fac1e9ba0e37b840724fd9d2d6b322f7c9d Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 26 Oct 2018 02:57:34 -0500 Subject: [PATCH] restore icon in tg message --- 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 79f18856..77d3d148 100644 --- a/backend/app/notify/telegram.go +++ b/backend/app/notify/telegram.go @@ -80,7 +80,7 @@ func (t *Telegram) Send(ctx context.Context, req request) error { from += " ➜ " + req.parent.User.Name } from = "*" + from + "*" - link := fmt.Sprintf("[original comment](%s)", req.comment.Locator.URL+uiNav+req.comment.ID) + link := fmt.Sprintf("☛ [original comment](%s)", req.comment.Locator.URL+uiNav+req.comment.ID) msg := fmt.Sprintf("%s\n\n%s\n\n%s", from, req.comment.Orig, link) msg = strings.Replace(msg, `”`, `"`, -1) // telegram doesn't like quotes ” and shows them as " u := fmt.Sprintf("%s%s/sendMessage?chat_id=@%s&text=%s&parse_mode=Markdown&disable_web_page_preview=true",