Class InlineQueryResultMpeg4Gif

java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultMpeg4Gif>
io.github.natanimn.telebof.types.inline.InlineQueryResultMpeg4Gif
All Implemented Interfaces:
InlineQueryResult, Serializable

public class InlineQueryResultMpeg4Gif extends InlineQueryMediaResult<InlineQueryResultMpeg4Gif>
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 InlineQueryMediaResult.setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the animation.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • mpeg4Url

      @SerializedName("mpeg4_url") private String mpeg4Url
    • thumbnailMimeType

      @SerializedName("thumbnail_mime_type") private String thumbnailMimeType
    • mpeg4Width

      @SerializedName("mpeg4_width") private Integer mpeg4Width
    • mpeg4Height

      @SerializedName("mpeg4_height") private Integer mpeg4Height
    • mpeg4Duration

      @SerializedName("mpeg4_duration") private Integer mpeg4Duration
    • showCaptionAboveMedia

      @SerializedName("show_caption_above_media") private Boolean showCaptionAboveMedia
    • thumbnailUrl

      @SerializedName("thumbnail_url") private String thumbnailUrl
    • title

      private String title
  • Constructor Details

    • InlineQueryResultMpeg4Gif

      public InlineQueryResultMpeg4Gif(String id, String mpeg4Url, String thumbnailUrl)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      mpeg4Url - A valid URL for the MPEG4 file
      thumbnailUrl - URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
  • Method Details