This commit is contained in:
shoopea 2019-05-10 10:51:15 +08:00
parent bdc75004b8
commit 84010b5931

4
bot.go
View File

@ -42,11 +42,11 @@ func botHello(m *tb.Message) (string, error) {
fmt.Println("botHello :", m.Text)
if !m.Private() {
fmt.Println("botHello : !m.Private()")
return
return ``, nil
}
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
PrintText(m)
return "hello world", nil
return `hello world`, nil
}
func botChannelPost(m *tb.Message) {