terminal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package terminal contains authenticator implementation using terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	*term.Terminal
}

Terminal implements UserAuthenticator.

func NewTerminal

func NewTerminal() *Terminal

NewTerminal creates new Terminal.

func (*Terminal) AcceptTermsOfService

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

func (*Terminal) Code

func (t *Terminal) Code(ctx context.Context) (string, error)

func (*Terminal) Password

func (t *Terminal) Password(ctx context.Context) (string, error)

func (*Terminal) Phone

func (t *Terminal) Phone(ctx context.Context) (string, error)

func (*Terminal) SignUp

func (t *Terminal) SignUp(ctx context.Context) (u telegram.UserInfo, err error)

Jump to

Keyboard shortcuts

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