Record Class InlineQueryResultPhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultPhoto
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultPhoto(@NotNull String id, @NotNull String photoUrl, @NotNull String thumbnailUrl, int photoWidth, int photoHeight, @Nullable String title, @Nullable String description, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent)
extends Record
implements InlineQueryResult
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InlineQueryResult
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultPhoto(@NotNull String id, @NotNull String photoUrl, @NotNull String thumbnailUrl, int photoWidth, int photoHeight, @Nullable String title, @Nullable String description, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultPhotorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcaption()Returns the value of thecaptionrecord component.@Nullable MessageEntity[]Returns the value of thecaptionEntitiesrecord component.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@Nullable InputMessageContentReturns the value of theinputMessageContentrecord component.static @NotNull lombok.Builder@Nullable ParseModeReturns the value of theparseModerecord component.intReturns the value of thephotoHeightrecord component.@NotNull StringphotoUrl()Returns the value of thephotoUrlrecord component.intReturns the value of thephotoWidthrecord component.@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.booleanReturns the value of theshowCaptionAboveMediarecord component.@NotNull StringReturns the value of thethumbnailUrlrecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultPhoto
public InlineQueryResultPhoto(@NotNull @NotNull String id, @NotNull @NotNull String photoUrl, @NotNull @NotNull String thumbnailUrl, int photoWidth, int photoHeight, @Nullable @Nullable String title, @Nullable @Nullable String description, @Nullable @Nullable String caption, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultPhotorecord class.- Parameters:
id- the value for theidrecord componentphotoUrl- the value for thephotoUrlrecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentphotoWidth- the value for thephotoWidthrecord componentphotoHeight- the value for thephotoHeightrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componentcaptionEntities- the value for thecaptionEntitiesrecord componentshowCaptionAboveMedia- the value for theshowCaptionAboveMediarecord componentreplyMarkup- the value for thereplyMarkuprecord componentinputMessageContent- the value for theinputMessageContentrecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInlineQueryResult
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
photoUrl
Returns the value of thephotoUrlrecord component.- Returns:
- the value of the
photoUrlrecord component
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
photoWidth
public int photoWidth()Returns the value of thephotoWidthrecord component.- Returns:
- the value of the
photoWidthrecord component
-
photoHeight
public int photoHeight()Returns the value of thephotoHeightrecord component.- Returns:
- the value of the
photoHeightrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord 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
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
inputMessageContent
Returns the value of theinputMessageContentrecord component.- Returns:
- the value of the
inputMessageContentrecord component
-