telegram

package
v0.0.0-...-09367bf Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

func (Auth) AcceptTermsOfService

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

func (Auth) Code

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

func (Auth) Password

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

func (Auth) Phone

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

func (Auth) SignUp

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

type Telegram

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

func New

func New(cfg *listeners.TelegramConfig, sessionDir string, log *wlog.Logger, queue *notifier.Queue) (*Telegram, error)

func (*Telegram) Close

func (t *Telegram) Close() error

func (*Telegram) Listen

func (t *Telegram) Listen(ctx context.Context) error

func (*Telegram) String

func (t *Telegram) String() string

Jump to

Keyboard shortcuts

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