Class InlineQueryResultPhoto

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

public class InlineQueryResultPhoto extends InlineQueryMediaResult<InlineQueryResultPhoto>
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use setInputMessageContent to send a message with the specified content instead of the photo.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • photoUrl

      @SerializedName("photo_url") private String photoUrl
    • title

      private String title
    • description

      private String description
    • thumbnailUrl

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

      @SerializedName("photo_width") private Integer photoWidth
    • photoHeight

      @SerializedName("photo_height") private Integer photoHeight
    • showCaptionAboveMedia

      @SerializedName("show_caption_above_media") private Boolean showCaptionAboveMedia
  • Constructor Details

    • InlineQueryResultPhoto

      public InlineQueryResultPhoto(String id, String photoUrl, String thumbnailUrl)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      photoUrl - A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB
      thumbnailUrl - URL of the thumbnail for the photo
  • Method Details