command

package
v0.0.0-...-3ca17b7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSettings

type ChangeSettings struct {
	ID       uuid.UUID             `json:"user_id"`
	ChatID   domainUser.TelegramID `json:"chat_id"`
	Settings domainUser.Settings   `json:"settings"`
}

ChangeSettings represents a command to change user settings. It can be used to change user settings by ID and chatID.

type ChangeSettingsHandler

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

func NewChangeSettingsHandler

func NewChangeSettingsHandler(userRepo domainUser.Repository, userProvider UserProvider) ChangeSettingsHandler

func (ChangeSettingsHandler) Handle

type RegisterUser

type RegisterUser struct {
	ChatID   domainUser.TelegramID `json:"chat_id"`
	Settings *domainUser.Settings  `json:"settings"`
}

type RegisterUserHandler

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

func NewRegisterUserHandler

func NewRegisterUserHandler(userRepo domainUser.Repository) RegisterUserHandler

func (RegisterUserHandler) Handle

type UserProvider

type UserProvider interface {
	GetUserByTelegramID(ctx context.Context, id domainUser.TelegramID) (*domainUser.User, error)
}

Jump to

Keyboard shortcuts

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