Class TdApi.EditProxy

  • Enclosing class:
    TdApi

    public static class TdApi.EditProxy
    extends TdApi.Function
    Edits an existing proxy server for network requests. Can be called before authorization.

    Returns Proxy

    • Field Detail

      • proxyId

        public int proxyId
        Proxy identifier.
      • 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

      • EditProxy

        public EditProxy()
        Default constructor for a function, which edits an existing proxy server for network requests. Can be called before authorization.

        Returns Proxy

      • EditProxy

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

        Returns Proxy

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