Class SendPhoto.SendPhotoBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.message.send.SendPhoto.SendPhotoBuilder
-
- Enclosing class:
- SendPhoto
public static class SendPhoto.SendPhotoBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendPhoto
build()
SendPhoto.SendPhotoBuilder
callback(java.util.function.Consumer<PhotoMessage> callback)
SendPhoto.SendPhotoBuilder
caption(java.lang.String caption)
SendPhoto.SendPhotoBuilder
chatId(ChatId chatId)
SendPhoto.SendPhotoBuilder
disableNotification(java.lang.Boolean disableNotification)
SendPhoto.SendPhotoBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendPhoto.SendPhotoBuilder
parseMode(ParseMode parseMode)
SendPhoto.SendPhotoBuilder
photo(InputFile photo)
SendPhoto.SendPhotoBuilder
replyMarkup(ReplyMarkup replyMarkup)
SendPhoto.SendPhotoBuilder
replyToMessageId(java.lang.Integer replyToMessageId)
java.lang.String
toString()
-
-
-
Method Detail
-
callback
public SendPhoto.SendPhotoBuilder callback(java.util.function.Consumer<PhotoMessage> callback)
-
errorHandler
public SendPhoto.SendPhotoBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
chatId
public SendPhoto.SendPhotoBuilder chatId(ChatId chatId)
-
replyToMessageId
public SendPhoto.SendPhotoBuilder replyToMessageId(java.lang.Integer replyToMessageId)
-
disableNotification
public SendPhoto.SendPhotoBuilder disableNotification(java.lang.Boolean disableNotification)
-
replyMarkup
public SendPhoto.SendPhotoBuilder replyMarkup(ReplyMarkup replyMarkup)
-
photo
public SendPhoto.SendPhotoBuilder photo(InputFile photo)
-
caption
public SendPhoto.SendPhotoBuilder caption(java.lang.String caption)
-
parseMode
public SendPhoto.SendPhotoBuilder parseMode(ParseMode parseMode)
-
build
public SendPhoto build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-