Package it.tdlight.jni
Class TdApi.SendCustomRequest
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SendCustomRequest
- Enclosing class:
- TdApi
public static class TdApi.SendCustomRequest extends TdApi.Function
Sends a custom request; for bots only.
Returns CustomRequestResult
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
method
The method name.String
parameters
JSON-serialized method parameters. -
Constructor Summary
Constructors Constructor Description SendCustomRequest()
Sends a custom request; for bots only.SendCustomRequest(DataInput input)
SendCustomRequest(String method, String parameters)
Sends a custom request; for bots only. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
method
The method name. -
parameters
JSON-serialized method parameters. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SendCustomRequest
public SendCustomRequest()Sends a custom request; for bots only.Returns
CustomRequestResult
-
SendCustomRequest
Sends a custom request; for bots only.Returns
CustomRequestResult
- Parameters:
method
- String The method name.parameters
- String JSON-serialized method parameters.
-
SendCustomRequest
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-