telegramx.js

ChosenInlineResult

interface

Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via in order to receive these objects in updates.

Declaration

interface ChosenInlineResult 

Properties

fromproperty#
from: User;

The user that chose the result

inline_message_id?: string;

Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.

locationproperty#
location?: Location;

Optional. Sender location, only for bots that require user location

queryproperty#
query: string;

The query that was used to obtain the result

result_idproperty#
result_id: string;

The unique identifier for the result that was chosen