Record Class InputMediaAudio
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputMediaAudio
- All Implemented Interfaces:
Serializable, ApiResult, InputMedia, InputPollMedia
public record InputMediaAudio(@NotNull InputFile media, @Nullable InputFile thumbnail, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean disableContentTypeDetection)
extends Record
implements InputMedia, InputPollMedia
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InputMedia
TYPE_NAMEFields inherited from interface InputPollMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputMediaAudio(@NotNull InputFile media, @Nullable InputFile thumbnail, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean disableContentTypeDetection) Creates an instance of aInputMediaAudiorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcaption()Returns the value of thecaptionrecord component.@Nullable MessageEntity[]Returns the value of thecaptionEntitiesrecord component.booleanReturns the value of thedisableContentTypeDetectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull InputMediaAudio.Builder@Nullable ParseModeReturns the value of theparseModerecord component.@Nullable InputFileReturns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputMediaAudio
public InputMediaAudio(@NotNull @NotNull InputFile media, @Nullable @Nullable InputFile thumbnail, @Nullable @Nullable String caption, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] captionEntities, boolean disableContentTypeDetection) Creates an instance of aInputMediaAudiorecord class.- Parameters:
media- the value for themediarecord componentthumbnail- the value for thethumbnailrecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componentcaptionEntities- the value for thecaptionEntitiesrecord componentdisableContentTypeDetection- the value for thedisableContentTypeDetectionrecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInputMedia- Specified by:
typein interfaceInputPollMedia
-
toBuilder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
captionEntities
Returns the value of thecaptionEntitiesrecord component.- Returns:
- the value of the
captionEntitiesrecord component
-
disableContentTypeDetection
public boolean disableContentTypeDetection()Returns the value of thedisableContentTypeDetectionrecord component.- Returns:
- the value of the
disableContentTypeDetectionrecord component
-