package main import ( neco "git.nefrace.ru/nefrace/nechotron" ) var MainState = neco.State{ Fn: func(u *neco.Update) error { disp := neco.NewDispatcher(). HandleCommand(commandMe, handleMe). HandleCommand(commandHelp, handleHelp). HandleCommand(commandSay, handleSay) return disp.Run(u) }, }