test
This commit is contained in:
parent
43d8be2e35
commit
ae3887c83f
11
bot.go
11
bot.go
@ -21,16 +21,7 @@ func StartBot() {
|
||||
failOnError(err, "StartBot")
|
||||
|
||||
b.Handle("/hello", func(m *tb.Message) {
|
||||
fmt.Println("botHello :", m.Text)
|
||||
if !m.Private() {
|
||||
fmt.Println("botHello : !m.Private()")
|
||||
return
|
||||
}
|
||||
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
|
||||
PrintText(m)
|
||||
m, err := b.Send(m.Sender, "hello world")
|
||||
logOnError(err, "botHello")
|
||||
fmt.Println("botHello : hello world")
|
||||
botHello(m)
|
||||
})
|
||||
|
||||
b.Handle("/rescan_msg", *botRescanMsg)
|
||||
|
Loading…
Reference in New Issue
Block a user