libtd-ktx / kotlinx.telegram.extensions / ProxyKtx / edit
edit
open suspend fun Proxy.edit(server: String?, port: Int, enable: Boolean, type: ProxyType?): Proxy
Suspend function, which edits an existing proxy server for network requests. Can be called before authorization.
Parameters
server - Proxy server IP address.
port - Proxy server port.
enable - True, if the proxy should be enabled.
type - Proxy type.
Return TdApi.Proxy Contains information about a proxy server.