test
This commit is contained in:
parent
a71e4cf696
commit
bdc75004b8
6
bot.go
6
bot.go
@ -38,7 +38,7 @@ func botPhoto(m *tb.Message) {
|
||||
// photos only
|
||||
}
|
||||
|
||||
func botHello(m *tb.Message) {
|
||||
func botHello(m *tb.Message) (string, error) {
|
||||
fmt.Println("botHello :", m.Text)
|
||||
if !m.Private() {
|
||||
fmt.Println("botHello : !m.Private()")
|
||||
@ -46,9 +46,7 @@ func botHello(m *tb.Message) {
|
||||
}
|
||||
// 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")
|
||||
return "hello world", nil
|
||||
}
|
||||
|
||||
func botChannelPost(m *tb.Message) {
|
||||
|
Loading…
Reference in New Issue
Block a user