valera/internal/states/interface.go

12 lines
218 B
Go

package states
import (
"net/http"
"valera/internal/db"
)
type BotState interface {
Do(text string, chatInfo *db.ChatInfo, username string) error
GetHandler() (string, func(http.ResponseWriter, *http.Request))
}