telegram

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 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)

Jump to

Keyboard shortcuts

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