go-dette/states.go

17 lines
311 B
Go
Raw Normal View History

2023-01-20 01:44:57 +03:00
package main
2023-01-20 16:32:21 +03:00
import (
neco "git.nefrace.ru/nefrace/nechotron"
)
var MainState = neco.State{
2023-01-22 23:53:20 +03:00
Fn: func(u *neco.Update) error {
disp := neco.NewDispatcher().
HandleCommand(commandMe, handleMe).
HandleCommand(commandHelp, handleHelp).
HandleCommand(commandSay, handleSay)
return disp.Run(u)
2023-01-20 16:32:21 +03:00
},
2023-01-20 01:44:57 +03:00
}