command

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileIdCommandName = "file_id"
)
View Source
const (
	LoginCommandName = "login"
)
View Source
const (
	MessageCommandName = "message"
)
View Source
const (
	ResetStatusCommandName = "reset_status"
)
View Source
const (
	SettingsCommandName = "settings"
)
View Source
const (
	StartCommandName = "start"
)
View Source
const (
	StatusCommandName = "status"
)

Variables

This section is empty.

Functions

func NewFileIdCommand

func NewFileIdCommand(states state.States, service *service.Service) bot.Command

func NewLoginCommand

func NewLoginCommand(states state.States, service *service.Service) bot.Command

func NewMessageCommand

func NewMessageCommand(states state.States, service *service.Service, messageCategoryCallback *callback.MessageCategoryCallback) bot.Command

func NewResetStatusCommand

func NewResetStatusCommand(service *service.Service, messageQueue queue.MessageQueue) bot.Command

func NewSettingsCommand added in v1.3.0

func NewSettingsCommand(service *service.Service, settingsCallback *callback.SettingsCallback) bot.Command

func NewStartCommand

func NewStartCommand(states state.States, service *service.Service, info *info.Info) bot.Command

func NewStatusCommand

func NewStatusCommand(states state.States, service *service.Service, messageQueue queue.MessageQueue) bot.Command

Types

type FileIdCommand

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

func (*FileIdCommand) Description

func (c *FileIdCommand) Description() string

func (*FileIdCommand) Handle

func (c *FileIdCommand) Handle(message *tgbotapi.Message) error

func (*FileIdCommand) Name

func (c *FileIdCommand) Name() string

type LoginCommand

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

func (*LoginCommand) Description

func (c *LoginCommand) Description() string

func (*LoginCommand) Handle

func (c *LoginCommand) Handle(message *tgbotapi.Message) error

func (*LoginCommand) Name

func (c *LoginCommand) Name() string

type MessageCommand

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

func (*MessageCommand) Description

func (c *MessageCommand) Description() string

func (*MessageCommand) Handle

func (c *MessageCommand) Handle(message *tgbotapi.Message) error

func (*MessageCommand) Name

func (c *MessageCommand) Name() string

type ResetStatusCommand

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

func (*ResetStatusCommand) Description

func (c *ResetStatusCommand) Description() string

func (*ResetStatusCommand) Handle

func (c *ResetStatusCommand) Handle(message *tgbotapi.Message) error

func (*ResetStatusCommand) Name

func (c *ResetStatusCommand) Name() string

type SettingsCommand added in v1.3.0

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

func (*SettingsCommand) Description added in v1.3.0

func (c *SettingsCommand) Description() string

func (*SettingsCommand) Handle added in v1.3.0

func (c *SettingsCommand) Handle(message *tgbotapi.Message) error

func (*SettingsCommand) Name added in v1.3.0

func (c *SettingsCommand) Name() string

type StartCommand

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

func (*StartCommand) Description

func (c *StartCommand) Description() string

func (*StartCommand) Handle

func (c *StartCommand) Handle(message *tgbotapi.Message) error

func (*StartCommand) Name

func (c *StartCommand) Name() string

type StatusCommand

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

func (*StatusCommand) Description

func (c *StatusCommand) Description() string

func (*StatusCommand) Handle

func (c *StatusCommand) Handle(message *tgbotapi.Message) error

func (*StatusCommand) Name

func (c *StatusCommand) Name() string

Jump to

Keyboard shortcuts

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