api.sendInlineQueryResultMessage()
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message
Parameters
SendInlineQueryResultMessageParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Target chat |
messageThreadId | number | If not 0, a message thread identifier in which the message will be sent |
replyToMessageId | number | 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 | string | Identifier of the inline query |
resultId | string | Identifier of the inline result |
hideViaBot | boolean | 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") |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'sendInlineQueryResultMessage' | 'error'
airgram: Airgram
request: {
method: 'sendInlineQueryResultMessage'
params: SendInlineQueryResultMessageParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}