auth

package
v0.0.0-...-df94c59 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 8 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
}

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