Function test_proxy

Source
pub async fn test_proxy(
    server: String,
    port: i32,
    type: ProxyType,
    dc_id: i32,
    timeout: f64,
    client_id: i32,
) -> Result<(), Error>
Expand description

Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization

ยงArguments

  • server - Proxy server domain or IP address
  • port - Proxy server port
  • r#type - Proxy type
  • dc_id - Identifier of a datacenter with which to test connection
  • timeout - The maximum overall timeout for the request
  • client_id - The client id to send the request to