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