Skip to content
Snippets Groups Projects
Verified Commit 8dac6b1f authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

no spam

parent 93be414e
No related branches found
No related tags found
No related merge requests found
...@@ -120,12 +120,15 @@ func msgHandler(w http.ResponseWriter, r *http.Request) { ...@@ -120,12 +120,15 @@ func msgHandler(w http.ResponseWriter, r *http.Request) {
} }
str := buf.String() str := buf.String()
if str != "" {
str = "**Sus szavak:**\n\n" + str
msg := tgbotapi.NewMessage(chanId, str) msg := tgbotapi.NewMessage(chanId, str)
_, e = DefaultBot.Send(msg) _, e = DefaultBot.Send(msg)
if e != nil { if e != nil {
fmt.Println(e) fmt.Println(e)
} }
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment