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 SendPhotobuild()SendPhoto.SendPhotoBuildercallback(java.util.function.Consumer<PhotoMessage> callback)SendPhoto.SendPhotoBuildercaption(java.lang.String caption)SendPhoto.SendPhotoBuilderchatId(ChatId chatId)SendPhoto.SendPhotoBuilderdisableNotification(java.lang.Boolean disableNotification)SendPhoto.SendPhotoBuildererrorHandler(java.util.function.Consumer<TelegramException> errorHandler)SendPhoto.SendPhotoBuilderparseMode(ParseMode parseMode)SendPhoto.SendPhotoBuilderphoto(InputFile photo)SendPhoto.SendPhotoBuilderreplyMarkup(ReplyMarkup replyMarkup)SendPhoto.SendPhotoBuilderreplyToMessageId(java.lang.Integer replyToMessageId)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-