Class Document
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.Document
This object represents a general file (as opposed to photos, voice messages and audio files).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable Long
@Nullable String
@Nullable PhotoSize
getThumb()
void
setFileName
(@Nullable String fileName) void
setFileSize
(@Nullable Long fileSize) void
setMimeType
(@Nullable String mimeType) void
toString()
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
getThumb
- Returns:
- Document thumbnail as defined by sender.
-
setThumb
- Parameters:
thumb
- Document thumbnail as defined by sender.
-
getFileName
- Returns:
- Original filename as defined by sender.
-
setFileName
- Parameters:
fileName
- Original filename as defined by sender.
-
getMimeType
- Returns:
- MIME type of the file as defined by sender.
-
setMimeType
- Parameters:
mimeType
- MIME type of the file as defined by sender.
-
getFileSize
- Returns:
- File size.
-
setFileSize
- Parameters:
fileSize
- File size.
-
toString
-