test
This commit is contained in:
parent
377dc2412c
commit
6ac4a78e0d
6
bot.go
6
bot.go
@ -43,7 +43,8 @@ func botHello(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
|
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
|
||||||
PrintText(m)
|
PrintText(m)
|
||||||
b.Send(m.Sender, "hello world")
|
m, err := b.Send(m.Sender, "hello world")
|
||||||
|
logOnError(err, "botHello")
|
||||||
fmt.Println("botHello : hello world")
|
fmt.Println("botHello : hello world")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +74,7 @@ func botRescanMsg(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
|
// fmt.Println("Hello payload :", m.Payload) // <PAYLOAD>
|
||||||
PrintText(m)
|
PrintText(m)
|
||||||
b.Send(m.Sender, "rescan")
|
m, err := b.Send(m.Sender, "rescan")
|
||||||
|
logOnError(err, "botRescanMsg")
|
||||||
fmt.Println("botRescanMsg : rescan")
|
fmt.Println("botRescanMsg : rescan")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user