Record Class InputMediaLivePhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputMediaLivePhoto
- All Implemented Interfaces:
Serializable, ApiResult, InputMedia, InputPollMedia, InputPollOptionMedia
public record InputMediaLivePhoto(@NotNull InputFile media, @NotNull InputFile photo, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, boolean hasSpoiler)
extends Record
implements InputMedia, InputPollMedia, InputPollOptionMedia
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InputMedia
TYPE_NAMEFields inherited from interface InputPollMedia
TYPE_NAMEFields inherited from interface InputPollOptionMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputMediaLivePhoto(@NotNull InputFile media, @NotNull InputFile photo, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, boolean hasSpoiler) Creates an instance of aInputMediaLivePhotorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcaption()Returns the value of thecaptionrecord component.@Nullable MessageEntity[]Returns the value of thecaptionEntitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasSpoilerrecord component.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull InputMediaLivePhoto.Builder@Nullable ParseModeReturns the value of theparseModerecord component.@NotNull InputFilephoto()Returns the value of thephotorecord component.booleanReturns the value of theshowCaptionAboveMediarecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputMediaLivePhoto
public InputMediaLivePhoto(@NotNull @NotNull InputFile media, @NotNull @NotNull InputFile photo, @Nullable @Nullable String caption, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, boolean hasSpoiler) Creates an instance of aInputMediaLivePhotorecord class.- Parameters:
media- the value for themediarecord componentphoto- the value for thephotorecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componentcaptionEntities- the value for thecaptionEntitiesrecord componentshowCaptionAboveMedia- the value for theshowCaptionAboveMediarecord componenthasSpoiler- the value for thehasSpoilerrecord component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull InputMediaLivePhoto.Builder ofBuilder(InputFile media, InputFile photo) -
type
- Specified by:
typein interfaceInputMedia- Specified by:
typein interfaceInputPollMedia- Specified by:
typein interfaceInputPollOptionMedia
-
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
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord 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
-
showCaptionAboveMedia
public boolean showCaptionAboveMedia()Returns the value of theshowCaptionAboveMediarecord component.- Returns:
- the value of the
showCaptionAboveMediarecord component
-
hasSpoiler
public boolean hasSpoiler()Returns the value of thehasSpoilerrecord component.- Returns:
- the value of the
hasSpoilerrecord component
-