Class SendAnimation

java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendAnimation

public class SendAnimation extends Send
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • SendAnimation

      public SendAnimation()
  • Method Details

    • getAnimation

      public @NonNull String getAnimation()
      Returns:
      Animation to send.
    • setAnimation

      public void setAnimation(@NonNull String animation)
      Parameters:
      animation - Animation to send.
    • getDuration

      public @Nullable Integer getDuration()
      Returns:
      Duration of sent video in seconds
    • setDuration

      public void setDuration(@Nullable Integer duration)
      Parameters:
      duration - Duration of sent video in seconds
    • getWidth

      public @Nullable Integer getWidth()
      Returns:
      Video width.
    • setWidth

      public void setWidth(@Nullable Integer width)
      Parameters:
      width - Video width.
    • getHeight

      public @Nullable Integer getHeight()
      Returns:
      Video height.
    • setHeight

      public void setHeight(@Nullable Integer height)
      Parameters:
      height - Video height.
    • getThumb

      public @Nullable String getThumb()
      Returns:
      Thumbnail of the file sent
    • setThumb

      public void setThumb(@Nullable String thumb)
      Parameters:
      thumb - Thumbnail of the file sent
    • getCaption

      public @Nullable String getCaption()
      Returns:
      Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
    • setCaption

      public void setCaption(@Nullable String caption)
      Parameters:
      caption - Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
    • getParseMode

      public @Nullable String getParseMode()
      Returns:
      Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
    • setParseMode

      public void setParseMode(@Nullable String parseMode)
      Parameters:
      parseMode - Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.