Documentation ¶
Index ¶
- type Terminal
- func (Terminal) AcceptTermsOfService(ctx context.Context, tos tg.HelpTermsOfService) error
- func (Terminal) Code(ctx context.Context, sentCode *tg.AuthSentCode) (string, error)
- func (Terminal) Password(_ context.Context) (string, error)
- func (a Terminal) Phone(_ context.Context) (string, error)
- func (Terminal) SignUp(ctx context.Context) (auth.UserInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
PhoneNumber string // optional, will be prompted if empty
}
Terminal implements auth.UserAuthenticator prompting the terminal for input.
This is only example implementation, you should not use it in your code. Copy it and modify to fit your needs.
func (Terminal) AcceptTermsOfService ¶
Click to show internal directories.
Click to hide internal directories.