libtd-ktx / kotlinx.telegram.extensions / ChatKtx / sendInlineQueryResultMessage
sendInlineQueryResultMessage
open suspend fun Chat.sendInlineQueryResultMessage(replyToMessageId: Long, options: SendMessageOptions?, queryId: Long, resultId: String?, hideViaBot: Boolean): Message
Suspend function, which sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.
Parameters
replyToMessageId - Identifier of a message to reply to or 0.
options - Options to be used to send the message.
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").
Return TdApi.Message Describes a message.