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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable List<MessageEntity> @NonNull StringgetMedia()@Nullable String@NonNull StringgetType()voidsetCaption(@Nullable String caption) voidsetCaptionEntities(@Nullable List<MessageEntity> captionEntities) voidvoidsetParseMode(@Nullable String parseMode) voidtoString()
-
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
-