Class InputMedia
java.lang.Object
io.micronaut.chatbots.telegram.api.InputMedia
- Direct Known Subclasses:
InputMediaDocument
,InputMediaPhoto
This object represents the content of a media message to be sent. It should be one of:
-
InputMediaAnimation
- InputMediaDocument
- InputMediaPhoto
- InputMediaVideo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable List<MessageEntity>
@NonNull String
getMedia()
@Nullable String
@NonNull String
getType()
void
setCaption
(@Nullable String caption) void
setCaptionEntities
(@Nullable List<MessageEntity> captionEntities) void
void
setParseMode
(@Nullable String parseMode) void
toString()
-
Constructor Details
-
InputMedia
-
-
Method Details
-
getType
- Returns:
- Type of the result, must be photo.
-
setType
- Parameters:
type
- Type of the result, must be photo.
-
getMedia
- Returns:
- File to send.
-
setMedia
- Parameters:
media
- File to send.
-
getCaption
- Returns:
- Caption of the audio to be sent, 0-1024 characters
-
setCaption
- Parameters:
caption
- Caption of the audio to be sent, 0-1024 characters
-
getParseMode
- Returns:
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
setParseMode
- Parameters:
parseMode
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
getCaptionEntities
- Returns:
- List of special entities that appear in the caption, which can be specified instead of parse_mode.
-
setCaptionEntities
- Parameters:
captionEntities
- List of special entities that appear in the caption, which can be specified instead of parse_mode.
-
toString
-