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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intProxy identifier. -
Constructor Summary
Constructors -
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
-
proxyId
public int proxyIdProxy identifier. Use 0 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
public PingProxy(int proxyId) 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:
proxyId- Proxy identifier. Use 0 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.Object- Returns:
- this.CONSTRUCTOR
-