telegram

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (essentials.Conn, error)
}

type Telegram

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

func New

func New(dialer Dialer, ipPreference string, useTestDCs bool) (*Telegram, error)

func (Telegram) Dial

func (t Telegram) Dial(ctx context.Context, dc int) (essentials.Conn, error)

func (Telegram) GetFallbackDC added in v2.1.2

func (t Telegram) GetFallbackDC() int

func (Telegram) IsKnownDC added in v2.1.2

func (t Telegram) IsKnownDC(dc int) bool

Jump to

Keyboard shortcuts

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