Module tdlight.api

Class TdApi.TestProxy

Enclosing class:
TdApi

public static final class TdApi.TestProxy extends TdApi.Function<TdApi.Ok>
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.

Returns Ok

  • Field Details

    • server

      public String server
      Proxy server IP address.
    • port

      public int port
      Proxy server port.
    • type

      public TdApi.ProxyType type
      Proxy type.
    • dcId

      public int dcId
      Identifier of a datacenter, with which to test connection.
    • timeout

      public double timeout
      The maximum overall timeout for the request.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • TestProxy

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

      Returns Ok

    • TestProxy

      public TestProxy(String server, int port, TdApi.ProxyType type, int dcId, double timeout)
      Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.

      Returns Ok

      Parameters:
      server - String Proxy server IP address.
      port - int Proxy server port.
      type - ProxyType Proxy type.
      dcId - int Identifier of a datacenter, with which to test connection.
      timeout - double The maximum overall timeout for the request.
    • TestProxy

      public TestProxy(DataInput input) throws IOException
      Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.

      Returns Ok

      Throws:
      IOException
  • Method Details