KickerBot/bot/handlers.go

17 lines
229 B
Go
Raw Normal View History

2021-12-03 12:19:55 +03:00
package bot
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
},
},
}