Use httpUrl as return type of getProxyLink.
This commit is contained in:
parent
45dfb58cc5
commit
4d8fad1e81
@ -5111,7 +5111,7 @@ removeProxy proxy_id:int32 = Ok;
|
||||
getProxies = Proxies;
|
||||
|
||||
//@description Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization @proxy_id Proxy identifier
|
||||
getProxyLink proxy_id:int32 = Text;
|
||||
getProxyLink proxy_id:int32 = HttpUrl;
|
||||
|
||||
//@description Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization @proxy_id Proxy identifier. Use 0 to ping a Telegram server without a proxy
|
||||
pingProxy proxy_id:int32 = Seconds;
|
||||
|
Binary file not shown.
@ -8014,7 +8014,7 @@ void Td::on_request(uint64 id, const td_api::getProxyLink &request) {
|
||||
if (result.is_error()) {
|
||||
promise.set_error(result.move_as_error());
|
||||
} else {
|
||||
promise.set_value(make_tl_object<td_api::text>(result.move_as_ok()));
|
||||
promise.set_value(make_tl_object<td_api::httpUrl>(result.move_as_ok()));
|
||||
}
|
||||
});
|
||||
send_closure(G()->connection_creator(), &ConnectionCreator::get_proxy_link, request.proxy_id_,
|
||||
|
Loading…
Reference in New Issue
Block a user