- 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
FieldsModifier and TypeFieldDescriptionlongTarget chat.static final intbooleanPass true to hide the bot, via which the message is sent.longIf 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.longIdentifier of the inline query.longIdentifier of a replied message; 0 if none.Identifier of the inline result. -
Constructor Summary
ConstructorsConstructorDescriptionSends the result of an inline query as a message.SendInlineQueryResultMessage(long chatId, long messageThreadId, long replyToMessageId, 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
Methods inherited from class it.tdlight.jni.TdApi.Function
toStringMethods 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. -
replyToMessageId
public long replyToMessageIdIdentifier of a replied message; 0 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 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 CONSTRUCTOR- 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. ReturnsMessage -
SendInlineQueryResultMessage
public SendInlineQueryResultMessage(long chatId, long messageThreadId, long replyToMessageId, 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. ReturnsMessage- Parameters:
chatId- long Target chat.messageThreadId- long If not 0, a message thread identifier in which the message will be sent.replyToMessageId- long Identifier of a replied message; 0 if none.options- MessageSendOptions Options to be used to send the message; pass null to use default options.queryId- long Identifier of the inline query.resultId- String Identifier of the inline result.hideViaBot- boolean 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").
-
SendInlineQueryResultMessage
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message. ReturnsMessage- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-