This commit is contained in:
shoopea 2019-05-10 10:52:14 +08:00
parent 84010b5931
commit 9d423386b1

6
bot.go
View File

@ -21,7 +21,11 @@ func StartBot() {
failOnError(err, "StartBot")
b.Handle("/hello", func(m *tb.Message) {
botHello(m)
s, err := botHello(m)
logOnError(err, "/hello")
if err == nil {
b.Send(m.Sender, s)
}
})
b.Handle("/rescan_msg", botRescanMsg)