Documentation ¶
Index ¶
- Constants
- func NewFileIdCommand(states state.States, service *service.Service) bot.Command
- func NewLoginCommand(states state.States, service *service.Service) bot.Command
- func NewMessageCommand(states state.States, service *service.Service, ...) bot.Command
- func NewResetStatusCommand(service *service.Service, messageQueue queue.MessageQueue) bot.Command
- func NewSettingsCommand(service *service.Service, settingsCallback *callback.SettingsCallback) bot.Command
- func NewStartCommand(states state.States, service *service.Service, info *info.Info) bot.Command
- func NewStatusCommand(states state.States, service *service.Service, messageQueue queue.MessageQueue) bot.Command
- type FileIdCommand
- type LoginCommand
- type MessageCommand
- type ResetStatusCommand
- type SettingsCommand
- type StartCommand
- type StatusCommand
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 NewLoginCommand ¶
func NewMessageCommand ¶
func NewResetStatusCommand ¶
func NewSettingsCommand ¶ added in v1.3.0
func NewStartCommand ¶
func NewStatusCommand ¶
Types ¶
type FileIdCommand ¶
type FileIdCommand struct {
// contains filtered or unexported fields
}
func (*FileIdCommand) Description ¶
func (c *FileIdCommand) Description() string
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) 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) 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) 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) Name ¶
func (c *StatusCommand) Name() string
Click to show internal directories.
Click to hide internal directories.