commit 6a5e9d2123ccc6a4266938d1db2e0fd04c0eae90
parent de75e0752175c4626724daa83c8018768c95647a
Author: danyisill <danyisill@users.noreply.github.com>
Date: Tue, 4 Aug 2020 20:36:37 +0300
No markup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/his.go b/his.go
@@ -29,7 +29,7 @@ func procThread(th Thread, b string){
params.Add("photo", fmt.Sprintf("https://is2.4chan.org/%s/%d%s", b, th.Tim, th.Ext))
comment := strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(html.UnescapeString(th.Com), "<span class=\"quote\">", ""), "</span>", "\n"), "<br>", "\n"), "class=\"quotelink\"", "")
params.Add("caption", fmt.Sprintf("https://boards.4channel.org/%s/thread/%d\n%s\n%s", b, th.No, th.Sub, comment))
- params.Add("parse_mode", "HTML")
+ //params.Add("parse_mode", "HTML")
http.Get(fmt.Sprintf("https://api.telegram.org/bot%s/sendPhoto?%s", "1364237567:AAGjywcrfrePt3Of_fGnaXyei4JL7KVa4ZE", params.Encode()))
}