TestProxy

public struct TestProxy : Codable, Equatable, TDFunction

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

  • Undocumented

    Declaration

    Swift

    public typealias Result = Ok
  • Proxy server IP address

    Declaration

    Swift

    public let server: String
  • Proxy server port

    Declaration

    Swift

    public let port: Int32
  • Proxy type

    Declaration

    Swift

    public let type: ProxyType
  • Identifier of a datacenter, with which to test connection

    Declaration

    Swift

    public let dcId: Int32
  • The maximum overall timeout for the request

    Declaration

    Swift

    public let timeout: Double
  • Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization

    Declaration

    Swift

    public init(server: String, port: Int32, type: ProxyType, dcId: Int32, timeout: Double)

    Parameters

    server

    Proxy server IP address

    port

    Proxy server port

    type

    Proxy type

    dcId

    Identifier of a datacenter, with which to test connection

    timeout

    The maximum overall timeout for the request