Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDialer ¶
func BuildDialer(localAddr string) func(ctx context.Context, network, addr string) (net.Conn, error)
BuildDialer возвращает dial-функцию привязанную к указанному локальному адресу. Если localAddr пуст — возвращает nil и gotd использует системный диалер по умолчанию.
func ParseProxyURL ¶
ParseProxyURL парсит tg://proxy?... или https://t.me/proxy?... возвращает server, port, secret в байтах.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.