Class InlineQueryResultGif

All Implemented Interfaces:
InlineQueryResult, Serializable

public class InlineQueryResultGif extends InlineQueryMediaResult<InlineQueryResultGif>
Represents a link to an animated GIF file. By default, this animated GIF 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

    • gifUrl

      @SerializedName("gif_url") private String gifUrl
    • thumbnailMimeType

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

      @SerializedName("gif_width") private Integer gifWidth
    • gifHeight

      @SerializedName("gif_height") private Integer gifHeight
    • gifDuration

      @SerializedName("gif_duration") private Integer gifDuration
    • showCaptionAboveMedia

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

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

      private String title
  • Constructor Details

    • InlineQueryResultGif

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