Class AbstractFile
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
- Direct Known Subclasses:
AbstractFileWithDimensions
,Audio
,Document
,File
,PassportFile
,VideoNote
,Voice
Abstract class for File messages.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
void
void
setFileUniqueId
(@NonNull String fileUniqueId)
-
Constructor Details
-
AbstractFile
public AbstractFile()
-
-
Method Details
-
getFileId
- Returns:
- Identifier for this file.
-
setFileId
- Parameters:
fileId
- Identifier for this file.
-
getFileUniqueId
- Returns:
- Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
-
setFileUniqueId
- Parameters:
fileUniqueId
- Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
-