libtd-ktx / kotlinx.telegram.coroutines / sendInlineQueryResultMessage
sendInlineQueryResultMessage
suspend fun TelegramFlow.sendInlineQueryResultMessage(chatId: Long, 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
chatId - Target chat.
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 Message Describes a message.