import String from "./String"; import InlineKeyboardMarkup from "./InlineKeyboardMarkup"; import InputMessageContent from "./InputMessageContent"; /** Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use *input_message_content* to send a message with the specified content instead of the photo. */ export default class InlineQueryResultCachedPhoto implements IInlineQueryResultCachedPhoto { constructor(data: IInlineQueryResultCachedPhoto | InlineQueryResultCachedPhoto, token?: string); public type: String; public id: String; public photo_file_id: String; public title?: String; public description?: String; public caption?: String; public parse_mode?: String; public reply_markup?: InlineKeyboardMarkup; public input_message_content?: InputMessageContent; } export interface IInlineQueryResultCachedPhoto { /** Type of the result, must be *photo* */ type: String; /** Unique identifier for this result, 1-64 bytes */ id: String; /** A valid file identifier of the photo */ photo_file_id: String; /** Title for the result */ title?: String; /** Short description of the result */ description?: String; /** Caption of the photo to be sent, 0-1024 characters */ caption?: String; /** Send [*Markdown*](https://core.telegram.org/bots/api#markdown-style) or [*HTML*](https://core.telegram.org/bots/api#html-style), if you want Telegram apps to show [bold, italic, fixed-width text or inline URLs](https://core.telegram.org/bots/api#formatting-options) in the media caption. */ parse_mode?: String; /** [Inline keyboard](https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating) attached to the message */ reply_markup?: InlineKeyboardMarkup; /** Content of the message to be sent instead of the photo */ input_message_content?: InputMessageContent; }