Class AbstractFile

java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
Direct Known Subclasses:
AbstractFileWithDimensions, Audio, Document, File, PassportFile, VideoNote, Voice

public class AbstractFile extends Object
Abstract class for File messages.
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • AbstractFile

      public AbstractFile()
  • Method Details

    • getFileId

      @NonNull public @NonNull String getFileId()
      Returns:
      Identifier for this file.
    • setFileId

      public void setFileId(@NonNull @NonNull String fileId)
      Parameters:
      fileId - Identifier for this file.
    • getFileUniqueId

      @NonNull public @NonNull String 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

      public void setFileUniqueId(@NonNull @NonNull String fileUniqueId)
      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.