Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSignUpOpts ¶
type AuthSignUpOpts struct {
Deeplink string
}
type User ¶
type User interface { // AuthViaBot authorize user via bot. // If user is not exist, create new user. AuthViaBot(ctx context.Context, user *tg.User, opts *AuthSignUpOpts) (*domain.User, error) // Change language of user. SetUserLanguage(ctx context.Context, user *domain.User, lang string) (changed bool, err error) // Stop mark user as stopped. Stop(ctx context.Context, user *domain.User) error // Restart mark user as active Restart(ctx context.Context, user *domain.User) error }
Click to show internal directories.
Click to hide internal directories.