Documentation ¶
Overview ¶
Package terminal contains authenticator implementation using terminal.
Index ¶
- type Terminal
- func (t *Terminal) AcceptTermsOfService(ctx context.Context, tos tg.HelpTermsOfService) error
- func (t *Terminal) Code(ctx context.Context, sentCode *tg.AuthSentCode) (string, error)
- func (t *Terminal) Password(ctx context.Context) (string, error)
- func (t *Terminal) Phone(ctx context.Context) (string, error)
- func (t *Terminal) SignUp(ctx context.Context) (u tgauth.UserInfo, err error)
- func (t *Terminal) WithPrinter(printer *message.Printer) *Terminal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
Terminal implements UserAuthenticator.
func (*Terminal) AcceptTermsOfService ¶
AcceptTermsOfService write terms of service received from Telegram and asks to accept it.
Click to show internal directories.
Click to hide internal directories.