pub async fn send_inline_query_result_message(
chat_id: i64,
message_thread_id: i64,
reply_to: Option<InputMessageReplyTo>,
options: Option<MessageSendOptions>,
query_id: i64,
result_id: String,
hide_via_bot: bool,
client_id: i32,
) -> Result<Message, Error>Expand description
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message
§Arguments
chat_id- Target chatmessage_thread_id- If not 0, the message thread identifier in which the message will be sentreply_to- Information about the message or story to be replied; pass null if noneoptions- Options to be used to send the message; pass null to use default optionsquery_id- Identifier of the inline queryresult_id- Identifier of the inline query resulthide_via_bot- 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”)client_id- The client id to send the request to