java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.CallbackQueryAnswer
- Enclosing class:
- TdApi
Contains a bot's answer to a callback query.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContains a bot's answer to a callback query.CallbackQueryAnswer
(DataInput input) Contains a bot's answer to a callback query.CallbackQueryAnswer
(String text, boolean showAlert, String url) Contains a bot's answer to a callback query. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
text
Text of the answer. -
showAlert
public boolean showAlertTrue, if an alert must be shown to the user instead of a toast notification. -
url
URL to be opened. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CallbackQueryAnswer
public CallbackQueryAnswer()Contains a bot's answer to a callback query. -
CallbackQueryAnswer
Contains a bot's answer to a callback query.- Parameters:
text
- Text of the answer.showAlert
- True, if an alert must be shown to the user instead of a toast notification.url
- URL to be opened.
-
CallbackQueryAnswer
Contains a bot's answer to a callback query.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-