Closed bruce6771 closed 5 years ago
this is not supported yet, i will see if have time to implement it this weekend
Please try the following:
console.log(await client.fetch({
'@type': 'addProxy',
'server': '127.0.0.1',
'port': '9999',
'enable': true,
'type': {
'@type': 'proxyTypeSocks5',
'username': '',
'password': '',
},
}))
See also:
https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1add_proxy.html https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1edit_proxy.html https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1remove_proxy.html https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1enable_proxy.html https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1disable_proxy.html
Please try the following:
console.log(await client.fetch({ '@type': 'addProxy', 'server': '127.0.0.1', 'port': '9999', 'enable': true, 'type': { '@type': 'proxyTypeSocks5', 'username': '', 'password': '', }, }))
it works, and I think the `port value should be a number
socket5 proxy mtproto proxy how can i set proxy in client.connect()? HELP