func SayHandler(message tbot.Message) { // Message contain it's varialbes from curly brackets message.Reply(message.Vars["text"]) }
func EchoHandler(message tbot.Message) { message.Reply(message.Text) }
func HiHandler(message tbot.Message) { // Handler can reply with several messages message.Replyf("Hello, %s!", message.From.FirstName) time.Sleep(1 * time.Second) message.Reply("What's up?") }