Class InlineQueryResultDocument

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

public class InlineQueryResultDocument extends InlineQueryMediaResult<InlineQueryResultDocument>
Represents a link to a file. By default, this file 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 file. Currently, only .PDF and .ZIP files can be sent using this method.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • documentUrl

      @SerializedName("document_url") private String documentUrl
    • description

      private String description
    • mimeType

      @SerializedName("mime_type") private MimeType mimeType
    • thumbnailUrl

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

      @SerializedName("thumbnail_width") private Integer thumbnailWidth
    • thumbnailHeight

      @SerializedName("thumbnail_height") private Integer thumbnailHeight
    • title

      private String title
  • Constructor Details

    • InlineQueryResultDocument

      public InlineQueryResultDocument(String id, String documentUrl, String title, MimeType mimeType)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      documentUrl - A valid URL for the file
      title - Title for the result
      mimeType - MIME type of the content of the file, either MimeType.PDF or MimeType.ZIP
  • Method Details