Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddReceiptCommand ¶
type AddReceiptCommand struct {
// contains filtered or unexported fields
}
func NewAddReceiptCommand ¶
func NewAddReceiptCommand(provider *user.Provider, grpcClient *backend.GrpcClient) *AddReceiptCommand
func (AddReceiptCommand) Accepted ¶
func (a AddReceiptCommand) Accepted(message string) bool
type ConfirmationCodeCommand ¶
type ConfirmationCodeCommand struct {
// contains filtered or unexported fields
}
ConfirmationCodeCommand is phone verification command
func NewConfirmationCodeCommand ¶
func NewConfirmationCodeCommand(provider *user.Provider, grpcClient *backend.GrpcClient) *ConfirmationCodeCommand
NewConfirmationCodeCommand creates ConfirmationCodeCommand
func (ConfirmationCodeCommand) Accepted ¶
func (c ConfirmationCodeCommand) Accepted(message string) bool
type EmptyCommand ¶
type EmptyCommand struct { }
func (EmptyCommand) Accepted ¶
func (e EmptyCommand) Accepted(message string) bool
func (EmptyCommand) Execute ¶
func (e EmptyCommand) Execute(update tgbotapi.Update, bot *tgbotapi.BotAPI) error
Execute command
type GetReceiptReportCommand ¶
type GetReceiptReportCommand struct {
// contains filtered or unexported fields
}
func NewGetReceiptReportCommand ¶
func NewGetReceiptReportCommand(provider *user.Provider, grpcClient *backend.GrpcClient) *GetReceiptReportCommand
func (GetReceiptReportCommand) Accepted ¶
func (g GetReceiptReportCommand) Accepted(message string) bool
func (GetReceiptReportCommand) Execute ¶
func (g GetReceiptReportCommand) Execute(update tgbotapi.Update, bot *tgbotapi.BotAPI) error
Execute command
type RegisterCommand ¶
type RegisterCommand struct {
// contains filtered or unexported fields
}
func NewRegisterCommand ¶
func NewRegisterCommand(provider *user.Provider, grpcClient *backend.GrpcClient) *RegisterCommand
func (RegisterCommand) Accepted ¶
func (r RegisterCommand) Accepted(message string) bool
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
func NewRegistrar ¶
func NewRegistrar() *Registrar
func (*Registrar) RegisterDefault ¶
type StartCommand ¶
type StartCommand struct { }
func (StartCommand) Accepted ¶
func (s StartCommand) Accepted(message string) bool
func (StartCommand) Execute ¶
func (s StartCommand) Execute(update tgbotapi.Update, bot *tgbotapi.BotAPI) error
Execute command
type WrongCommand ¶
type WrongCommand struct { }
func (WrongCommand) Accepted ¶
func (w WrongCommand) Accepted(_ string) bool
func (WrongCommand) Execute ¶
func (w WrongCommand) Execute(update tgbotapi.Update, bot *tgbotapi.BotAPI) error
Execute command
Click to show internal directories.
Click to hide internal directories.