Class TdApi.AddProxy

  • Enclosing class:
    TdApi

    public static class TdApi.AddProxy
    extends TdApi.Function
    Adds a proxy server for network requests. Can be called before authorization.

    Returns Proxy

    • Field Detail

      • server

        public String server
        Proxy server IP address.
      • port

        public int port
        Proxy server port.
      • enable

        public boolean enable
        True, if the proxy needs to be enabled.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddProxy

        public AddProxy()
        Default constructor for a function, which adds a proxy server for network requests. Can be called before authorization.

        Returns Proxy

      • AddProxy

        public AddProxy​(String server,
                        int port,
                        boolean enable,
                        TdApi.ProxyType type)
        Creates a function, which adds a proxy server for network requests. Can be called before authorization.

        Returns Proxy

        Parameters:
        server - Proxy server IP address.
        port - Proxy server port.
        enable - True, if the proxy needs to be enabled.
        type - Proxy type.