- Enclosing class:
- TdApi
Sends the result of an inline query as a message. Returns the sent
message. Always clears a chat draft message.
Returns Message
-
Field Summary
Modifier and TypeFieldDescriptionlong
Target chat.static final int
Identifier uniquely determining type of the object.boolean
Pass true to hide the bot, via which the message is sent.long
If not 0, a message thread identifier in which the message will be sent.Options to be used to send the message; pass null to use default options.long
Identifier of the inline query.Identifier of the replied message or story; pass null if none.Identifier of the inline query result. -
Constructor Summary
ConstructorDescriptionSends the result of an inline query as a message.SendInlineQueryResultMessage
(long chatId, long messageThreadId, TdApi.MessageReplyTo replyTo, TdApi.MessageSendOptions options, long queryId, String resultId, boolean hideViaBot) Sends the result of an inline query as a message.Sends the result of an inline query as a message. -
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.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdTarget chat. -
messageThreadId
public long messageThreadIdIf not 0, a message thread identifier in which the message will be sent. -
replyTo
Identifier of the replied message or story; pass null if none. -
options
Options to be used to send the message; pass null to use default options. -
queryId
public long queryIdIdentifier of the inline query. -
resultId
Identifier of the inline query result. -
hideViaBot
public boolean hideViaBotPass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username"). -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendInlineQueryResultMessage
public SendInlineQueryResultMessage()Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.Returns
Message
-
SendInlineQueryResultMessage
public SendInlineQueryResultMessage(long chatId, long messageThreadId, TdApi.MessageReplyTo replyTo, TdApi.MessageSendOptions options, long queryId, String resultId, boolean hideViaBot) Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.Returns
Message
- Parameters:
chatId
- Target chat.messageThreadId
- If not 0, a message thread identifier in which the message will be sent.replyTo
- Identifier of the replied message or story; pass null if none.options
- Options to be used to send the message; pass null to use default options.queryId
- Identifier of the inline query.resultId
- Identifier of the inline query result.hideViaBot
- Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username").Returns
Message
-
SendInlineQueryResultMessage
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.Returns
Message
- 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()
-