Class SendDocument

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

public class SendDocument extends Send
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • SendDocument

      public SendDocument()
  • Method Details

    • getDocument

      @NonNull public @NonNull String getDocument()
      Returns:
      File to send.
    • setDocument

      public void setDocument(@NonNull @NonNull String document)
      Parameters:
      document - File to send.
    • 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.