messages.sendInlineBotResult

Send a result obtained using messages.getInlineBotResults.

API section: Working with bot inline queries and callback buttons

messages.sendInlineBotResult#c0cf7646 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut allow_paid_stars:flags.21?long = Updates;

Parameters

NameTypeDescription
flags # Bit mask: a field written flags.N?T is present only when bit N is set.
silent flags.5?true Send without sound: the recipient gets no notification.
background flags.6?true Background send: no notification and the chat is not bumped.
clear_draft flags.7?true Clear the draft in this chat after sending.
hide_via flags.11?true
peer InputPeer The user or chat the request is about.
reply_to flags.0?InputReplyTo What the message replies to.
random_id long A random number from the client. The server uses it to discard duplicates when a request goes out twice.
query_id long Query identifier — return it with the answer.
id string Identifier of the object — which object depends on the field's type.
schedule_date flags.10?int When to send, unix time. If set, the message goes out later.
send_as flags.13?InputPeer Which identity to send as — a channel or another profile.
quick_reply_shortcut flags.17?InputQuickReplyShortcut
allow_paid_stars flags.21?long

Result

Updates

Possible errors

Read out of the handler itself — this is what the server actually returns for this method.

CodeTypeWhat it means
403 USER_NOT_PARTICIPANT You are not a member of this chat.

Common to every call

CodeTypeWhat it means
401 AUTH_KEY_UNREGISTERED The server does not know this session: the key was revoked, expired, or the call was made before authorisation.
401 API_ID_INVALID This api_id was never issued or has been blocked. Keys come from my.ansible.su.
400 CONNECTION_LAYER_INVALID The client did not declare a layer, or declared one the server does not know.
420 FLOOD_WAIT_X Too often. Do not retry for X seconds — the number arrives in the error text.
500 INTERNAL A failure on our side. The request may be retried; if it keeps failing, it is a bug of ours.

Related pages

Types used here