SendInlineQueryResultMessage constructor

const SendInlineQueryResultMessage({
  1. required int chatId,
  2. required int messageThreadId,
  3. InputMessageReplyTo? replyTo,
  4. MessageSendOptions? options,
  5. required int queryId,
  6. required String resultId,
  7. required bool hideViaBot,
})

SendInlineQueryResultMessage (sendInlineQueryResultMessage) - TDLib function

Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.

  • chatId: Target chat.
  • messageThreadId: If not 0, the message thread identifier in which the message will be sent.
  • replyTo: Information about the message or story to be replied; pass null if none (optional).
  • options: Options to be used to send the message; pass null to use default options (optional).
  • 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").

Message is returned on completion.

Implementation

const SendInlineQueryResultMessage({
  required this.chatId,
  required this.messageThreadId,
  this.replyTo,
  this.options,
  required this.queryId,
  required this.resultId,
  required this.hideViaBot,
});