This commit is contained in:
shoopea 2019-05-10 10:39:16 +08:00
parent 377dc2412c
commit 6ac4a78e0d

6
bot.go
View File

@ -43,7 +43,8 @@ func botHello(m *tb.Message) {
}
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
PrintText(m)
b.Send(m.Sender, "hello world")
m, err := b.Send(m.Sender, "hello world")
logOnError(err, "botHello")
fmt.Println("botHello : hello world")
}
@ -73,6 +74,7 @@ func botRescanMsg(m *tb.Message) {
}
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
PrintText(m)
b.Send(m.Sender, "rescan")
m, err := b.Send(m.Sender, "rescan")
logOnError(err, "botRescanMsg")
fmt.Println("botRescanMsg : rescan")
}