Class InlineQueryResultCachedPhoto

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

public class InlineQueryResultCachedPhoto extends InlineQueryMediaResult<InlineQueryResultCachedPhoto>
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an 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 photo.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • photoFileId

      @SerializedName("photo_file_id") private String photoFileId
    • title

      private String title
    • description

      private String description
    • showCaptionAboveMedia

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

    • InlineQueryResultCachedPhoto

      public InlineQueryResultCachedPhoto(String id, String photoFileId)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      photoFileId - A valid file identifier of the photo
  • Method Details