import String from "./String"; import Integer from "./Integer"; import InlineKeyboardMarkup from "./InlineKeyboardMarkup"; import InputMessageContent from "./InputMessageContent"; /** * Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use *input_message_content* to send a message with the specified content instead of the the voice message. * * **Note:** This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them. */ export default class InlineQueryResultVoice implements IInlineQueryResultVoice { constructor(data: IInlineQueryResultVoice | InlineQueryResultVoice, token?: string); public type: String; public id: String; public voice_url: String; public title: String; public caption?: String; public parse_mode?: String; public voice_duration?: Integer; public reply_markup?: InlineKeyboardMarkup; public input_message_content?: InputMessageContent; } export interface IInlineQueryResultVoice { /** Type of the result, must be *voice* */ type: String; /** Unique identifier for this result, 1-64 bytes */ id: String; /** A valid URL for the voice recording */ voice_url: String; /** Recording 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; /** Recording duration in seconds */ voice_duration?: Integer; /** [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 recording */ input_message_content?: InputMessageContent; }