Class InputMediaAudio
java.lang.Object
org.apache.camel.component.telegram.model.InputMedia
org.apache.camel.component.telegram.model.InputMediaAudio
- All Implemented Interfaces:
Serializable
Represents an audio file to be treated as music to be sent.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputMediaAudio
(String media, String caption, String parseMode, Integer duration, String performer, String title) BuildsInputMediaAudio
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
void
setDuration
(Integer duration) void
setPerformer
(String performer) void
Methods inherited from class org.apache.camel.component.telegram.model.InputMedia
getCaption, getMedia, getParseMode, getType, setCaption, setMedia, setParseMode, setType
-
Constructor Details
-
InputMediaAudio
public InputMediaAudio(String media, String caption, String parseMode, Integer duration, String performer, String title) BuildsInputMediaAudio
instance.- Parameters:
media
- File to send. Pass a file_id to send a file that exists on the Telegram servers, or pass an HTTP URL for Telegram to get a file from the Internetcaption
- Optional. Caption of the video to be sent, 0-1024 charactersparseMode
- Optional. Send 'Markdown' or 'HTML', if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.duration
- Optional. width.performer
- Optional. performer.title
- Optional. title.
-
InputMediaAudio
public InputMediaAudio()
-
-
Method Details
-
getDuration
-
setDuration
-
getPerformer
-
setPerformer
-
getTitle
-
setTitle
-