
org.telegram.telegrambots.api.objects.inlinequery.result.InlineQueryResultVoice Maven / Gradle / Ivy
package org.telegram.telegrambots.api.objects.inlinequery.result;
import org.telegram.telegrambots.api.objects.inlinequery.inputmessagecontent.InputMessageContent;
import org.telegram.telegrambots.api.objects.replykeyboard.InlineKeyboardMarkup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* @author Lev Nadeinsky
* @author Ruben Bermudez
* @brief 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.
* @date 10 of April of 2016
*/
@Data
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper=true)
public class InlineQueryResultVoice extends InlineQueryResult{
String id; ///< Unique identifier of this result, 1-64 bytes
String voiceUrl; ///< A valid URL for the voice recording
String title; ///< Recording title
Integer voiceDuration; ///< Optional. Recording duration in seconds
InputMessageContent inputMessageContent; ///< Optional. Content of the message to be sent instead of the voice recording
InlineKeyboardMarkup replyMarkup; ///< Optional. Inline keyboard attached to the message
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy