Class SendPhoto
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendPhoto,Message>
io.github.natanimn.telebof.requests.send.SendBuilder<SendPhoto,Message>
io.github.natanimn.telebof.requests.send.SendPhoto
SendPhoto class. Returns
Message on success.- Since:
- 3 March 2025
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] captionEntities) OptionalhasSpoiler(boolean hasSpoiler) OptionalshowCaptionAboveMedia(boolean showCaptionAboveMedia) OptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilder
allowPaidBroadcast, businessConnectionId, directMessagesTopicId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters, suggestedPostParametersMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendPhoto
Required- Parameters:
chatId- Chat idphoto- file id or urlapi- api- See Also:
-
SendPhoto
Required- Parameters:
chatId- Chat idphoto- file id or urlapi- api- See Also:
-
-
Method Details
-
caption
Optional- Parameters:
caption- Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing- Returns:
SendPhoto
-
captionEntities
Optional- Parameters:
captionEntities- A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode- Returns:
SendPhoto
-
hasSpoiler
Optional- Parameters:
hasSpoiler- Pass True if the photo needs to be covered with a spoiler animation- Returns:
SendPhoto
-
showCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
SendPhoto
-