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