typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
30 lines (29 loc) • 895 B
TypeScript
import { User } from './';
/**
* ## ChosenInlineResult
* Represents a result of an inline query that was chosen by the user and sent to their chat partner.
* @see https://core.telegram.org/bots/api#choseninlineresult
*/
export type ChosenInlineResult = {
/**
* The unique identifier for the result that was chosen
*/
result_id: string;
/**
* The user that chose the result
*/
from: User;
/**
* Optional. Sender location, only for bots that require user location
*/
location?: Location;
/**
* 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.
*/
inline_message_id?: string;
/**
* The query that was used to obtain the result
*/
query: string;
};