Package org.drinkless.tdlib
Class TdApi.PingProxy
- Enclosing class:
TdApi
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
Returns Seconds
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.The proxy to test; pass null to ping a Telegram server without a proxy. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which computes time needed to receive a response from a Telegram server through a proxy.PingProxy(TdApi.Proxy proxy) Creates a function, which computes time needed to receive a response from a Telegram server through a proxy. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
proxy
The proxy to test; pass null to ping a Telegram server without a proxy. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PingProxy
public PingProxy()Default constructor for a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.Returns
Seconds -
PingProxy
Creates a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.Returns
Seconds- Parameters:
proxy- The proxy to test; pass null to ping a Telegram server without a proxy.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Seconds>- Returns:
- this.CONSTRUCTOR
-