libtd-ktx / kotlinx.telegram.coroutines / editProxy
editProxy
suspend fun
TelegramFlow
.editProxy(proxyId:
Int
, 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
proxyId
- Proxy identifier.
server
- Proxy server IP address.
port
- Proxy server port.
enable
- True, if the proxy should be enabled.
type
- Proxy type.
Return Proxy Contains information about a proxy server.