All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.telegram.telegrambots.api.objects.inlinequery.result.InlineQueryResultMpeg4Gif 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 video animation (H.264/MPEG-4 AVC video without sound). By default,
 * this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can
 * use input_message_content to send a message with the specified content instead of the animation.
 * @date 01 of January of 2016
 */

@Data
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper=true)
public class InlineQueryResultMpeg4Gif extends InlineQueryResult{
    String id; ///< Unique identifier of this result, 1-64 bytes
    String mpeg4Url; ///< A valid URL for the MP4 file. File size must not exceed 1MB
    Integer mpeg4Width; ///< Optional. Video width
    Integer mpeg4Height; ///< Optional. Video height
    String thumbUrl; ///< Optional. URL of the static thumbnail (jpeg or gif) for the result
    String title; ///< Optional. Title for the result
    String caption; ///< Optional. Caption of the MPEG-4 file to be sent
    InputMessageContent inputMessageContent; ///< Optional. Content of the message to be sent instead of the photo
    InlineKeyboardMarkup replyMarkup; ///< Optional. Inline keyboard attached to the message

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy