public class SendableTextMessage extends Object implements SendableMessage, ReplyingOptions, NotificationOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
SendableTextMessage.SendableTextBuilder |
static class |
SendableTextMessage.SendableTextMessageBuilder |
| Constructor and Description |
|---|
SendableTextMessage() |
| Modifier and Type | Method and Description |
|---|---|
static SendableTextMessage.SendableTextMessageBuilder |
builder()
This builder will allow you to progressively construct this object.
|
MessageType |
getType()
Gets the MessageType of this SendableMessage object
|
static SendableTextMessage.SendableTextMessageBuilder |
html(String text)
This builder will be created with the text you provide already added with HTML formatting enabled.
|
static SendableTextMessage.SendableTextMessageBuilder |
markdown(String text)
This builder will be created with the text you provide already added with markdown formatting enabled.
|
static SendableTextMessage.SendableTextMessageBuilder |
plain(String text)
This builder will be created with the text you provide already added with markdown formatting enabled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReplyMarkup, getReplyToisDisableNotificationpublic static SendableTextMessage.SendableTextMessageBuilder builder()
public static SendableTextMessage.SendableTextMessageBuilder markdown(String text)
text - The text you would like the builder to be created withpublic static SendableTextMessage.SendableTextMessageBuilder html(String text)
text - The text you would like the builder to be created withpublic static SendableTextMessage.SendableTextMessageBuilder plain(String text)
text - The text you would like the builder to be created withpublic MessageType getType()
getType in interface SendableMessageCopyright © 2017. All rights reserved.