Skip to content

sendInlineQueryResultMessage

Sahri Riza Umami edited this page Dec 8, 2016 · 2 revisions

Sends result of the inline query as a message.

sendInlineQueryResultMessage(chat_id, reply_to_message_id, disable_notification, from_background, query_id, result_id)

Returns sent message.
UpdateChatTopMessage will not be sent, so returned message should be used to update chat top message.
Always clears chat draft message.

Option Description
chat_id Chat to send message.
reply_to_message_id Identifier of a message to reply to or 0.
disable_notification Pass true, to disable notification about the message.
from_background Pass true, if the message is sent from background.
query_id Identifier of the inline query.
result_id Identifier of the inline result.

Example

sendInlineQueryResultMessage(chat_id, reply_to_message_id, disable_notification, from_background, query_id, result_id)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally