Documentation
¶
Index ¶
Constants ¶
View Source
const USER_CTX_KEY types.CtxKey = "botUser"
Variables ¶
This section is empty.
Functions ¶
func WithUserHandler ¶
func WithUserHandler(handler UserHandlerFunc) bot.HandlerFunc
Types ¶
type User ¶
type User struct { ID int64 ChatID int64 Lang string Localizer *i18n.Localizer Settings UserSettings Action *UserAction }
type UserAction ¶
type UserAction struct { Action services.UserAction Payload *string }
type UserMiddleware ¶
type UserMiddleware struct {
// contains filtered or unexported fields
}
func CreateUserMiddleware ¶
func CreateUserMiddleware( userService *services.UserService, userActionService *services.UserActionService, languages *languages.Languages, ) *UserMiddleware
func (*UserMiddleware) Middleware ¶
func (m *UserMiddleware) Middleware(next bot.HandlerFunc) bot.HandlerFunc
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.