23 lines
351 B
Go
23 lines
351 B
Go
package bot
|
|
|
|
import "github.com/NicoNex/echotron/v3"
|
|
|
|
type RenderMode int
|
|
|
|
const (
|
|
NewMessage RenderMode = iota
|
|
EditMessage
|
|
)
|
|
|
|
type State interface {
|
|
Enter(*Bot, RenderMode)
|
|
HandleCallback(*Bot, *echotron.Update)
|
|
HandleMessage(*Bot, *echotron.Update)
|
|
Handle(*Bot, *echotron.Update)
|
|
}
|
|
|
|
type Session struct {
|
|
FirstName string
|
|
JWT string
|
|
}
|