telegram

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 5 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) (net.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) (net.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