lib/tdlib/client_methods.rb
# Adds a proxy server for network requests.
# Can be called before authorization.
#
# @param server [TD::Types::String] Proxy server IP address.
# @param port [Integer] Proxy server port.
# @param enable [Boolean] True, if the proxy needs to be enabled.
# @param type [TD::Types::ProxyType] Proxy type.
# @return [TD::Types::Proxy]
Adds a proxy server for network requests.
Can be called before authorization.
Adds a proxy server for network requests . Can be called before authorization .
def add_proxy(server:, port:, enable:, type:)
    broadcast('@type'  => 'addProxy',
              'server' => server,
              'port'   => port,
              'enable' => enable,
              'type'   => type)
  end
def add_proxy ( server : , port : , enable : , type : ) broadcast ( '@type' => 'addProxy' , 'server' => server , 'port' => port , 'enable' => enable , 'type' => type ) end
Adds a proxy server for network requests.
Adds a proxy server for network requests .
None
TD::Types::Proxy
server
Proxy server IP address.
Proxy server IP address .
port
Proxy server port.
Proxy server port .
enable
True, if the proxy needs to be enabled.
True if the proxy needs to be enabled .
type
None