terminal

package
v0.0.0-...-6e04981 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (Terminal) AcceptTermsOfService(ctx context.Context, tos tg.HelpTermsOfService) error

func (Terminal) Code

func (Terminal) Code(ctx context.Context, sentCode *tg.AuthSentCode) (string, error)

func (Terminal) Password

func (Terminal) Password(_ context.Context) (string, error)

func (Terminal) Phone

func (a Terminal) Phone(_ context.Context) (string, error)

func (Terminal) SignUp

func (Terminal) SignUp(ctx context.Context) (auth.UserInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL