Record Class ExternalReplyInfo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ExternalReplyInfo
- All Implemented Interfaces:
Serializable,ApiResult
public record ExternalReplyInfo(@NotNull MessageOrigin origin, @Nullable Chat chat, int messageId, @Nullable LinkPreviewOptions linkPreviewOptions, @Nullable Animation animation, @Nullable Audio audio, @Nullable Document document, @Nullable PaidMedia paidMedia, @Nullable PhotoSize[] photo, @Nullable Sticker sticker, @Nullable Story story, @Nullable Video video, @Nullable VideoNote videoNote, @Nullable Voice voice, boolean hasMediaSpoiler, @Nullable Checklist checklist, @Nullable Contact contact, @Nullable Dice dice, @Nullable Game game, @Nullable Giveaway giveaway, @Nullable GiveawayWinners giveawayWinners, @Nullable Invoice invoice, @Nullable Location location, @Nullable Poll poll, @Nullable Venue venue)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExternalReplyInfo(@NotNull MessageOrigin origin, @Nullable Chat chat, int messageId, @Nullable LinkPreviewOptions linkPreviewOptions, @Nullable Animation animation, @Nullable Audio audio, @Nullable Document document, @Nullable PaidMedia paidMedia, @Nullable PhotoSize[] photo, @Nullable Sticker sticker, @Nullable Story story, @Nullable Video video, @Nullable VideoNote videoNote, @Nullable Voice voice, boolean hasMediaSpoiler, @Nullable Checklist checklist, @Nullable Contact contact, @Nullable Dice dice, @Nullable Game game, @Nullable Giveaway giveaway, @Nullable GiveawayWinners giveawayWinners, @Nullable Invoice invoice, @Nullable Location location, @Nullable Poll poll, @Nullable Venue venue) Creates an instance of aExternalReplyInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AnimationReturns the value of theanimationrecord component.@Nullable Audioaudio()Returns the value of theaudiorecord component.@Nullable Chatchat()Returns the value of thechatrecord component.@Nullable ChecklistReturns the value of thechecklistrecord component.@Nullable Contactcontact()Returns the value of thecontactrecord component.@Nullable Dicedice()Returns the value of thedicerecord component.@Nullable Documentdocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Gamegame()Returns the value of thegamerecord component.@Nullable Giveawaygiveaway()Returns the value of thegiveawayrecord component.@Nullable GiveawayWinnersReturns the value of thegiveawayWinnersrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasMediaSpoilerrecord component.@Nullable Invoiceinvoice()Returns the value of theinvoicerecord component.@Nullable LinkPreviewOptionsReturns the value of thelinkPreviewOptionsrecord component.@Nullable Locationlocation()Returns the value of thelocationrecord component.intReturns the value of themessageIdrecord component.@NotNull MessageOriginorigin()Returns the value of theoriginrecord component.@Nullable PaidMediaReturns the value of thepaidMediarecord component.@Nullable PhotoSize[]photo()Returns the value of thephotorecord component.@Nullable Pollpoll()Returns the value of thepollrecord component.@Nullable Stickersticker()Returns the value of thestickerrecord component.@Nullable Storystory()Returns the value of thestoryrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Venuevenue()Returns the value of thevenuerecord component.@Nullable Videovideo()Returns the value of thevideorecord component.@Nullable VideoNoteReturns the value of thevideoNoterecord component.@Nullable Voicevoice()Returns the value of thevoicerecord component.
-
Constructor Details
-
ExternalReplyInfo
public ExternalReplyInfo(@NotNull @NotNull MessageOrigin origin, @Nullable @Nullable Chat chat, int messageId, @Nullable @Nullable LinkPreviewOptions linkPreviewOptions, @Nullable @Nullable Animation animation, @Nullable @Nullable Audio audio, @Nullable @Nullable Document document, @Nullable @Nullable PaidMedia paidMedia, @Nullable @Nullable PhotoSize[] photo, @Nullable @Nullable Sticker sticker, @Nullable @Nullable Story story, @Nullable @Nullable Video video, @Nullable @Nullable VideoNote videoNote, @Nullable @Nullable Voice voice, boolean hasMediaSpoiler, @Nullable @Nullable Checklist checklist, @Nullable @Nullable Contact contact, @Nullable @Nullable Dice dice, @Nullable @Nullable Game game, @Nullable @Nullable Giveaway giveaway, @Nullable @Nullable GiveawayWinners giveawayWinners, @Nullable @Nullable Invoice invoice, @Nullable @Nullable Location location, @Nullable @Nullable Poll poll, @Nullable @Nullable Venue venue) Creates an instance of aExternalReplyInforecord class.- Parameters:
origin- the value for theoriginrecord componentchat- the value for thechatrecord componentmessageId- the value for themessageIdrecord componentlinkPreviewOptions- the value for thelinkPreviewOptionsrecord componentanimation- the value for theanimationrecord componentaudio- the value for theaudiorecord componentdocument- the value for thedocumentrecord componentpaidMedia- the value for thepaidMediarecord componentphoto- the value for thephotorecord componentsticker- the value for thestickerrecord componentstory- the value for thestoryrecord componentvideo- the value for thevideorecord componentvideoNote- the value for thevideoNoterecord componentvoice- the value for thevoicerecord componenthasMediaSpoiler- the value for thehasMediaSpoilerrecord componentchecklist- the value for thechecklistrecord componentcontact- the value for thecontactrecord componentdice- the value for thedicerecord componentgame- the value for thegamerecord componentgiveaway- the value for thegiveawayrecord componentgiveawayWinners- the value for thegiveawayWinnersrecord componentinvoice- the value for theinvoicerecord componentlocation- the value for thelocationrecord componentpoll- the value for thepollrecord componentvenue- the value for thevenuerecord component
-
-
Method Details
-
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 '=='. -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
messageId
public int messageId()Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
linkPreviewOptions
Returns the value of thelinkPreviewOptionsrecord component.- Returns:
- the value of the
linkPreviewOptionsrecord component
-
animation
Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
audio
Returns the value of theaudiorecord component.- Returns:
- the value of the
audiorecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
paidMedia
Returns the value of thepaidMediarecord component.- Returns:
- the value of the
paidMediarecord component
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-
sticker
Returns the value of thestickerrecord component.- Returns:
- the value of the
stickerrecord component
-
story
Returns the value of thestoryrecord component.- Returns:
- the value of the
storyrecord component
-
video
Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-
videoNote
Returns the value of thevideoNoterecord component.- Returns:
- the value of the
videoNoterecord component
-
voice
Returns the value of thevoicerecord component.- Returns:
- the value of the
voicerecord component
-
hasMediaSpoiler
public boolean hasMediaSpoiler()Returns the value of thehasMediaSpoilerrecord component.- Returns:
- the value of the
hasMediaSpoilerrecord component
-
checklist
Returns the value of thechecklistrecord component.- Returns:
- the value of the
checklistrecord component
-
contact
Returns the value of thecontactrecord component.- Returns:
- the value of the
contactrecord component
-
dice
Returns the value of thedicerecord component.- Returns:
- the value of the
dicerecord component
-
game
Returns the value of thegamerecord component.- Returns:
- the value of the
gamerecord component
-
giveaway
Returns the value of thegiveawayrecord component.- Returns:
- the value of the
giveawayrecord component
-
giveawayWinners
Returns the value of thegiveawayWinnersrecord component.- Returns:
- the value of the
giveawayWinnersrecord component
-
invoice
Returns the value of theinvoicerecord component.- Returns:
- the value of the
invoicerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
poll
Returns the value of thepollrecord component.- Returns:
- the value of the
pollrecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-