Documentation
¶
Index ¶
- type FullAuthFlow
- type TermAuth
- func (c TermAuth) AcceptTermsOfService(ctx context.Context, tos tg.HelpTermsOfService) error
- func (a TermAuth) Code(_ context.Context, code *tg.AuthSentCode) (string, error)
- func (a TermAuth) GetAPICredentials(ctx context.Context) (int, string, error)
- func (a TermAuth) Password(ctx context.Context) (string, error)
- func (a TermAuth) Phone(_ context.Context) (string, error)
- func (c TermAuth) SignUp(ctx context.Context) (auth.UserInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullAuthFlow ¶
type TermAuth ¶
type TermAuth struct {
// contains filtered or unexported fields
}
TermAuth implements authentication via terminal.
func NewTermAuth ¶
func (TermAuth) AcceptTermsOfService ¶
func (c TermAuth) AcceptTermsOfService(ctx context.Context, tos tg.HelpTermsOfService) error
func (TermAuth) GetAPICredentials ¶
Click to show internal directories.
Click to hide internal directories.