dialog

package
v0.0.0-...-5d712d2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package dialog contains GUI dialog Telegram authenticator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	// contains filtered or unexported fields
}

Dialog is authenticator implementation using GUI dialogs.

func NewDialog

func NewDialog() Dialog

NewDialog creates new Dialog.

func (Dialog) AcceptTermsOfService

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

AcceptTermsOfService implements telegram.UserAuthenticator.

func (Dialog) Code

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

Code implements telegram.UserAuthenticator.

func (Dialog) Password

func (d Dialog) Password(ctx context.Context) (string, error)

Password implements telegram.UserAuthenticator.

func (Dialog) Phone

func (d Dialog) Phone(ctx context.Context) (string, error)

Phone implements telegram.UserAuthenticator.

func (Dialog) SignUp

func (d Dialog) SignUp(ctx context.Context) (tgauth.UserInfo, error)

SignUp implements telegram.UserAuthenticator.

func (Dialog) WithPrinter

func (d Dialog) WithPrinter(printer *message.Printer) Dialog

WithPrinter sets localization printer.

Jump to

Keyboard shortcuts

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