java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
Direct Known Subclasses:
SendAnimation, SendAudio, SendChatAction, SendContact, SendCoordinates, SendDocument, SendPoll, SendText, SendVideoNote

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

    • method

      @NonNull protected final @NonNull String method
  • Constructor Details

    • Send

      protected Send(String method)
  • Method Details

    • getMethod

      @NonNull public @NonNull String getMethod()
      Returns:
      Send method
    • getChatId

      @NonNull public @NonNull Object getChatId()
      Returns:
      Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    • setChatId

      public void setChatId(@NonNull @NonNull Object chatId)
      Parameters:
      chatId - Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    • getDisableNotification

      @Nullable public @Nullable Boolean getDisableNotification()
      Returns:
      Whether the message should be send silently. Users will receive a notification with no sound.
    • setDisableNotification

      public void setDisableNotification(@Nullable @Nullable Boolean disableNotification)
      Parameters:
      disableNotification - true to sends the message silently. Users will receive a notification with no sound.
    • getReplyToMessageId

      @Nullable public @Nullable String getReplyToMessageId()
      Returns:
      If the message is a reply, ID of the original message.
    • setReplyToMessageId

      public void setReplyToMessageId(@Nullable @Nullable String replyToMessageId)
      Parameters:
      replyToMessageId - If the message is a reply, ID of the original message.
    • getReplyMarkup

      @Nullable public @Nullable String getReplyMarkup()
      Returns:
      A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
    • setReplyMarkup

      public void setReplyMarkup(@Nullable @Nullable String replyMarkup)
      Parameters:
      replyMarkup - A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.