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
serverProxy server IP address
portProxy server port
typeProxy type
dcIdIdentifier of a datacenter, with which to test connection
timeoutThe maximum overall timeout for the request
View on GitHub
Install in Dash
TestProxy Structure Reference