form

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileIdFormName = "FileIdForm"
)
View Source
const (
	LoginFormName = "LoginForm"
)
View Source
const (
	MessageFormName = "MessageForm"
)
View Source
const (
	PasswordFormName = "PasswordForm"
)
View Source
const (
	UploadCategoriesFormName = "UploadCategoriesForm"
)

Variables

This section is empty.

Functions

func NewFileIdForm

func NewFileIdForm(service *service.Service) bot.Form

func NewLoginForm

func NewLoginForm(states state.States, service *service.Service) bot.Form

func NewMessageForm

func NewMessageForm(states state.States, service *service.Service,
	messageQueue queue.MessageQueue, categoryService *category.Service,
	deleteCallback *callback.DeleteMessageCallback) bot.Form

func NewPasswordForm

func NewPasswordForm(states state.States, service *service.Service, spbClient spb.Client, queue queue.MessageQueue) bot.Form

func NewUploadCategoriesForm added in v1.3.0

func NewUploadCategoriesForm(states state.States, service *service.Service, categoryService *category.Service) bot.Form

Types

type FileIdForm

type FileIdForm struct {
	// contains filtered or unexported fields
}

func (*FileIdForm) Handle

func (f *FileIdForm) Handle(message *tgbotapi.Message) error

func (*FileIdForm) Name

func (f *FileIdForm) Name() string

type LoginForm

type LoginForm struct {
	// contains filtered or unexported fields
}

func (*LoginForm) Handle

func (f *LoginForm) Handle(message *tgbotapi.Message) error

func (*LoginForm) Name

func (f *LoginForm) Name() string

type MessageForm

type MessageForm struct {
	// contains filtered or unexported fields
}

func (*MessageForm) Handle

func (f *MessageForm) Handle(message *tgbotapi.Message) error

func (*MessageForm) Name

func (f *MessageForm) Name() string

type PasswordForm

type PasswordForm struct {
	// contains filtered or unexported fields
}

func (*PasswordForm) Handle

func (f *PasswordForm) Handle(message *tgbotapi.Message) error

func (*PasswordForm) Name

func (f *PasswordForm) Name() string

type UploadCategoriesForm added in v1.3.0

type UploadCategoriesForm struct {
	// contains filtered or unexported fields
}

func (*UploadCategoriesForm) Handle added in v1.3.0

func (f *UploadCategoriesForm) Handle(message *tgbotapi.Message) error

func (*UploadCategoriesForm) Name added in v1.3.0

func (f *UploadCategoriesForm) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL