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

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

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

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

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

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

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

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

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

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

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

      @Nullable 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 @Nullable String caption)
      Parameters:
      caption - Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
    • getParseMode

      @Nullable 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 @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.