Interface MessagePartText

All Superinterfaces:
MessagePart

@Experimental public interface MessagePartText extends MessagePart
Message content type representing a textual content.
Since:
5.2.240708
  • Method Details

    • create

      @NotNull static @NotNull MessagePartText create(@NotNull @NotNull String text)
      Creates a new MessagePartText.
      Parameters:
      text - The textual content.
      Returns:
      The new instance.
      Since:
      5.2.240708
    • getText

      @NotNull @NotNull String getText()
      The textual content of this message part.
      Returns:
      The textual content.
      Since:
      5.2.240708