diff --git a/internal/transport/proxy.go b/internal/transport/proxy.go index 3af4cd2f..98a63a13 100644 --- a/internal/transport/proxy.go +++ b/internal/transport/proxy.go @@ -13,9 +13,7 @@ import ( "time" ) -const ( - DefaultTimeout = 5 * time.Second -) +const DefaultTimeout = 5 * time.Second func dialProxy(s *url.URL, address string) (net.Conn, error) { switch s.Scheme { diff --git a/telegram/client.go b/telegram/client.go index d5e58046..149b0c77 100644 --- a/telegram/client.go +++ b/telegram/client.go @@ -357,6 +357,10 @@ func (c *Client) SetAppHash(appHash string) { c.clientData.appHash = appHash } +// func (c *Client) SetTcpConnection(conn *net.TCPConn) { +// c.MTProto.SetTcpConnection(conn) +// } + func (c *Client) Me() *UserObj { return c.clientData.me }