public static class SendableTextMessage.SendableTextMessageBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendableTextMessage |
build()
Builds the SendableTextMessage object
|
SendableTextMessage.SendableTextMessageBuilder |
disableNotification(boolean disableNotification)
*Optional*
Sets whether or not to disable any notification this message might usually cause.
|
SendableTextMessage.SendableTextMessageBuilder |
disableWebPagePreview(boolean disableWebPagePreview) |
SendableTextMessage.SendableTextMessageBuilder |
message(String message)
*Required*
Sets the text to be sent
|
SendableTextMessage.SendableTextMessageBuilder |
parseMode(ParseMode parseMode)
*Optional*
Sets the ParseMode that you want to use for this message
|
SendableTextMessage.SendableTextMessageBuilder |
replyMarkup(ReplyMarkup replyMarkup)
*Optional*
Sets the ReplyMarkup that you want to send with the message
|
SendableTextMessage.SendableTextMessageBuilder |
replyTo(long replyTo)
*Optional*
Sets the ID of the message you want to reply to
|
SendableTextMessage.SendableTextMessageBuilder |
replyTo(Message replyTo)
*Optional*
Sets the Message object that you want to reply to
|
SendableTextMessage.SendableTextBuilder |
textBuilder() |
public SendableTextMessage.SendableTextBuilder textBuilder()
public SendableTextMessage.SendableTextMessageBuilder message(String message)
message - The text to be sentpublic SendableTextMessage.SendableTextMessageBuilder replyTo(Message replyTo)
replyTo - The Message object you want to reply topublic SendableTextMessage.SendableTextMessageBuilder replyTo(long replyTo)
replyTo - The ID of the message you want to reply topublic SendableTextMessage.SendableTextMessageBuilder disableWebPagePreview(boolean disableWebPagePreview)
public SendableTextMessage.SendableTextMessageBuilder replyMarkup(ReplyMarkup replyMarkup)
replyMarkup - The ReplyMarkup you want to send with the messagepublic SendableTextMessage.SendableTextMessageBuilder parseMode(ParseMode parseMode)
parseMode - The ParseMode you want to use with this messagepublic SendableTextMessage.SendableTextMessageBuilder disableNotification(boolean disableNotification)
disableNotification - True to disable notifications for this message, False otherwisepublic SendableTextMessage build()
Copyright © 2017. All rights reserved.