Class InputMediaDocument

java.lang.Object
io.micronaut.chatbots.telegram.api.InputMedia
io.micronaut.chatbots.telegram.api.InputMediaDocument
Direct Known Subclasses:
InputMediaAnimation, InputMediaAudio, InputMediaVideo

public class InputMediaDocument extends InputMedia
Represents a general file to be sent.
  • Constructor Details

    • InputMediaDocument

      public InputMediaDocument()
    • InputMediaDocument

      public InputMediaDocument(String type)
  • Method Details

    • getThumb

      @Nullable public @Nullable String getThumb()
      Returns:
      Thumbnail of the file sent
    • setThumb

      public void setThumb(@Nullable @Nullable String thumb)
      Parameters:
      thumb - Thumbnail of the file sent
    • getDisableContentTypeDetection

      @Nullable public @Nullable Boolean getDisableContentTypeDetection()
      Returns:
      Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.
    • setDisableContentTypeDetection

      public void setDisableContentTypeDetection(@Nullable @Nullable Boolean disableContentTypeDetection)
      Parameters:
      disableContentTypeDetection - Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.
    • toString

      public String toString()
      Overrides:
      toString in class InputMedia