From f08144d19e3882a935165520158ab665774d5ccd Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 25 Oct 2018 13:07:57 -0500 Subject: [PATCH] unicode arrow for tg orig link --- 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 ae4c3b33..28131721 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(" [orginal comment](%s)", req.comment.Locator.URL+uiNav+req.comment.ID) + link := fmt.Sprintf("☛ [orginal 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",