Const
Create a proxy transport based on an url.
Supported URLs (self-explanatory):
socks4://user:pass@1.2.3.4:80
socks5://user:pass@1.2.3.4:80
http://user:pass@1.2.3.4:80
https://user:pass@1.2.3.4:443
https://t.me/proxy?server=example.com&port=443&secret=3dpBFlW2hP6Hq_WOwiNeKBY
Transport for that proxy
Create a proxy transport based on an url.
Supported URLs (self-explanatory):
socks4://user:pass@1.2.3.4:80socks5://user:pass@1.2.3.4:80http://user:pass@1.2.3.4:80https://user:pass@1.2.3.4:443https://t.me/proxy?server=example.com&port=443&secret=3dpBFlW2hP6Hq_WOwiNeKBY