Class Document

java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.Document

public class Document extends AbstractFile
This object represents a general file (as opposed to photos, voice messages and audio files).
See Also:
  • Constructor Details

    • Document

      public Document()
  • Method Details

    • getThumb

      @Nullable public @Nullable PhotoSize getThumb()
      Returns:
      Document thumbnail as defined by sender.
    • setThumb

      public void setThumb(@Nullable @Nullable PhotoSize thumb)
      Parameters:
      thumb - Document thumbnail as defined by sender.
    • getFileName

      @Nullable public @Nullable String getFileName()
      Returns:
      Original filename as defined by sender.
    • setFileName

      public void setFileName(@Nullable @Nullable String fileName)
      Parameters:
      fileName - Original filename as defined by sender.
    • getMimeType

      @Nullable public @Nullable String getMimeType()
      Returns:
      MIME type of the file as defined by sender.
    • setMimeType

      public void setMimeType(@Nullable @Nullable String mimeType)
      Parameters:
      mimeType - MIME type of the file as defined by sender.
    • getFileSize

      @Nullable public @Nullable Long getFileSize()
      Returns:
      File size.
    • setFileSize

      public void setFileSize(@Nullable @Nullable Long fileSize)
      Parameters:
      fileSize - File size.
    • toString

      public String toString()
      Overrides:
      toString in class Object