KickerBot/kicker/handlers.go

17 lines
232 B
Go
Raw Normal View History

2021-12-03 14:30:10 +03:00
package kicker
2021-12-03 12:19:55 +03:00
import (
tb "gopkg.in/tucnak/telebot.v3"
)
var HandlersV1 = []Handler{
{
Endpoint: tb.OnText,
Handler: func(c tb.Context) error {
m := c.Message()
c.Bot().Send(m.Sender, m.Text)
return nil
},
},
}