Class VideoNote

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

public class VideoNote extends AbstractFile
This object represents a video message (available in Telegram apps as of v.4.0).
See Also:
  • Constructor Details

    • VideoNote

      public VideoNote()
  • Method Details

    • getLength

      @NonNull public @NonNull Integer getLength()
      Returns:
      Video width and height (diameter of the video message) as defined by sender.
    • setLength

      public void setLength(@NonNull @NonNull Integer length)
      Parameters:
      length - Video width and height (diameter of the video message) as defined by sender.
    • getDuration

      @NonNull public @NonNull Integer getDuration()
      Returns:
      Duration of the video in seconds as defined by sender.
    • setDuration

      public void setDuration(@NonNull @NonNull Integer duration)
      Parameters:
      duration - Duration of the video in seconds as defined by sender.
    • getThumb

      @Nullable public @Nullable PhotoSize getThumb()
      Returns:
      Video thumbnail.
    • setThumb

      public void setThumb(@Nullable @Nullable PhotoSize thumb)
      Parameters:
      thumb - Video thumbnail.
    • getFileSize

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

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

      public String toString()
      Overrides:
      toString in class Object