Documentation ¶ Index ¶ Constants type Addr func (d Addr) String() string type Logger type Telegram func New(ipPreference string, userOverrides map[int][]string) (*Telegram, error) func (t *Telegram) GetAddresses(dc int) []Addr Constants ¶ View Source const ( DefaultDC = 2 ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Addr ¶ type Addr struct { Network string Address string } func (Addr) String ¶ func (d Addr) String() string type Logger ¶ type Logger interface { Info(msg string) WarningError(msg string, err error) } type Telegram ¶ type Telegram struct { // contains filtered or unexported fields } func New ¶ func New(ipPreference string, userOverrides map[int][]string) (*Telegram, error) func (*Telegram) GetAddresses ¶ func (t *Telegram) GetAddresses(dc int) []Addr Source Files ¶ View all Source files addr.goaddr_set.goinit.gotelegram.goview.go Click to show internal directories. Click to hide internal directories.