Package org.drinkless.tdlib
Class TdApi.SendInlineQueryResultMessage
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SendInlineQueryResultMessage
-
- Enclosing class:
- TdApi
public static class TdApi.SendInlineQueryResultMessage extends TdApi.Function
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.Returns
Message
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdTarget chat.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanhideViaBotIf true, there will be no mention of a bot, via which the message is sent.longmessageThreadIdIf not 0, a message thread identifier in which the message will be sent.TdApi.MessageSendOptionsoptionsOptions to be used to send the message; pass null to use default options.longqueryIdIdentifier of the inline query.longreplyToMessageIdIdentifier of a message to reply to or 0.StringresultIdIdentifier of the inline result.
-
Constructor Summary
Constructors Constructor Description SendInlineQueryResultMessage()Default constructor for a function, which sends 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)Creates a function, which sends the result of an inline query as a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Target chat.
-
messageThreadId
public long messageThreadId
If not 0, a message thread identifier in which the message will be sent.
-
replyToMessageId
public long replyToMessageId
Identifier of a message to reply to or 0.
-
options
public TdApi.MessageSendOptions options
Options to be used to send the message; pass null to use default options.
-
queryId
public long queryId
Identifier of the inline query.
-
resultId
public String resultId
Identifier of the inline result.
-
hideViaBot
public boolean hideViaBot
If true, there will be no mention of a 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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SendInlineQueryResultMessage
public SendInlineQueryResultMessage()
Default constructor for a function, which 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, long replyToMessageId, TdApi.MessageSendOptions options, long queryId, String resultId, boolean hideViaBot)Creates a function, which 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.replyToMessageId- Identifier of a message to reply to or 0.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 result.hideViaBot- If true, there will be no mention of a 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").
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-