Class TdApi.PingProxy
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Seconds>
dev.voroby.springframework.telegram.client.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
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Proxy identifier. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-