Class InputMediaAudio
java.lang.Object
org.telegram.telegrambots.meta.api.objects.media.InputMedia
org.telegram.telegrambots.meta.api.objects.media.InputMediaAudio
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
- Version:
- 4.0.0 Represents an audio file to be treated as music to be sent.
- Author:
- Ruben Bermudez
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class org.telegram.telegrambots.meta.api.objects.media.InputMedia
CAPTION_FIELD, CAPTIONENTITIES_FIELD, MEDIA_FIELD, PARSEMODE_FIELD, TYPE_FIELD
-
Constructor Summary
ConstructorDescriptionInputMediaAudio
(@NonNull String media) InputMediaAudio
(@NonNull String media, String caption, String parseMode, List<MessageEntity> entities, boolean isNewMedia, String mediaName, File newMediaFile, InputStream newMediaStream, Integer duration, String performer, String title, InputFile thumbnail) -
Method Summary
Methods inherited from class org.telegram.telegrambots.meta.api.objects.media.InputMedia
isNewMedia, setMedia, setMedia, setMedia
-
Field Details
-
DURATION_FIELD
- See Also:
-
PERFORMER_FIELD
- See Also:
-
TITLE_FIELD
- See Also:
-
THUMBNAIL_FIELD
- See Also:
-
-
Constructor Details
-
InputMediaAudio
public InputMediaAudio() -
InputMediaAudio
-
InputMediaAudio
-
-
Method Details
-
getType
- Specified by:
getType
in classInputMedia
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Overrides:
validate
in classInputMedia
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
getThumb
Deprecated.Use {#getThumbnail()
} -
setThumb
Deprecated.Use {#setThumbnail(InputFile)
}
-
#getThumbnail()
}