Added OptionsBuilder

This commit is contained in:
2023-02-10 16:59:42 +03:00
parent 1377e03b5e
commit c6ce1913dc
3 changed files with 92 additions and 6 deletions

6
bot.go
View File

@ -12,15 +12,15 @@ import (
type bot struct {
echo.API
chatID int64
me *echo.User
Me *echo.User
data StateData
lock sync.Mutex
state Runnable
State Runnable
handler UpdateHandler
}
func DefaultHandler(u *Update) error {
err := u.Bot.state.Call(u)
err := u.Bot.State.Call(u)
return err
}