import String from "./String"; import InlineKeyboardMarkup from "./InlineKeyboardMarkup"; import InputMessageContent from "./InputMessageContent"; /** * Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use *input_message_content* to send a message with the specified content instead of the voice message. * * **Note:** This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */ export default class InlineQueryResultCachedVoice implements IInlineQueryResultCachedVoice { constructor(data: IInlineQueryResultCachedVoice | InlineQueryResultCachedVoice, token?: string); public type: String; public id: String; public voice_file_id: String; public title: String; public caption?: String; public parse_mode?: String; public reply_markup?: InlineKeyboardMarkup; public input_message_content?: InputMessageContent; } export interface IInlineQueryResultCachedVoice { /** Type of the result, must be *voice* */ type: String; /** Unique identifier for this result, 1-64 bytes */ id: String; /** A valid file identifier for the voice message */ voice_file_id: String; /** Voice message title */ title: String; /** Caption, 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 voice message */ input_message_content?: InputMessageContent; }