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

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a ExternalReplyInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Animation
    Returns the value of the animation record component.
    @Nullable Audio
    Returns the value of the audio record component.
    @Nullable Chat
    Returns the value of the chat record component.
    @Nullable Checklist
    Returns the value of the checklist record component.
    @Nullable Contact
    Returns the value of the contact record component.
    @Nullable Dice
    Returns the value of the dice record component.
    @Nullable Document
    Returns the value of the document record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @Nullable Game
    Returns the value of the game record component.
    @Nullable Giveaway
    Returns the value of the giveaway record component.
    @Nullable GiveawayWinners
    Returns the value of the giveawayWinners record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasMediaSpoiler record component.
    @Nullable Invoice
    Returns the value of the invoice record component.
    Returns the value of the linkPreviewOptions record component.
    @Nullable Location
    Returns the value of the location record component.
    int
    Returns the value of the messageId record component.
    @NotNull MessageOrigin
    Returns the value of the origin record component.
    @Nullable PaidMedia
    Returns the value of the paidMedia record component.
    @Nullable PhotoSize[]
    Returns the value of the photo record component.
    @Nullable Poll
    Returns the value of the poll record component.
    @Nullable Sticker
    Returns the value of the sticker record component.
    @Nullable Story
    Returns the value of the story record component.
    final String
    Returns a string representation of this record class.
    @Nullable Venue
    Returns the value of the venue record component.
    @Nullable Video
    Returns the value of the video record component.
    @Nullable VideoNote
    Returns the value of the videoNote record component.
    @Nullable Voice
    Returns the value of the voice record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ExternalReplyInfo record class.
      Parameters:
      origin - the value for the origin record component
      chat - the value for the chat record component
      messageId - the value for the messageId record component
      linkPreviewOptions - the value for the linkPreviewOptions record component
      animation - the value for the animation record component
      audio - the value for the audio record component
      document - the value for the document record component
      paidMedia - the value for the paidMedia record component
      photo - the value for the photo record component
      sticker - the value for the sticker record component
      story - the value for the story record component
      video - the value for the video record component
      videoNote - the value for the videoNote record component
      voice - the value for the voice record component
      hasMediaSpoiler - the value for the hasMediaSpoiler record component
      checklist - the value for the checklist record component
      contact - the value for the contact record component
      dice - the value for the dice record component
      game - the value for the game record component
      giveaway - the value for the giveaway record component
      giveawayWinners - the value for the giveawayWinners record component
      invoice - the value for the invoice record component
      location - the value for the location record component
      poll - the value for the poll record component
      venue - the value for the venue record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • origin

      @NotNull public @NotNull MessageOrigin origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • chat

      @Nullable public @Nullable Chat chat()
      Returns the value of the chat record component.
      Returns:
      the value of the chat record component
    • messageId

      public int messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • linkPreviewOptions

      @Nullable public @Nullable LinkPreviewOptions linkPreviewOptions()
      Returns the value of the linkPreviewOptions record component.
      Returns:
      the value of the linkPreviewOptions record component
    • animation

      @Nullable public @Nullable Animation animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • audio

      @Nullable public @Nullable Audio audio()
      Returns the value of the audio record component.
      Returns:
      the value of the audio record component
    • document

      @Nullable public @Nullable Document document()
      Returns the value of the document record component.
      Returns:
      the value of the document record component
    • paidMedia

      @Nullable public @Nullable PaidMedia paidMedia()
      Returns the value of the paidMedia record component.
      Returns:
      the value of the paidMedia record component
    • photo

      @Nullable public @Nullable PhotoSize[] photo()
      Returns the value of the photo record component.
      Returns:
      the value of the photo record component
    • sticker

      @Nullable public @Nullable Sticker sticker()
      Returns the value of the sticker record component.
      Returns:
      the value of the sticker record component
    • story

      @Nullable public @Nullable Story story()
      Returns the value of the story record component.
      Returns:
      the value of the story record component
    • video

      @Nullable public @Nullable Video video()
      Returns the value of the video record component.
      Returns:
      the value of the video record component
    • videoNote

      @Nullable public @Nullable VideoNote videoNote()
      Returns the value of the videoNote record component.
      Returns:
      the value of the videoNote record component
    • voice

      @Nullable public @Nullable Voice voice()
      Returns the value of the voice record component.
      Returns:
      the value of the voice record component
    • hasMediaSpoiler

      public boolean hasMediaSpoiler()
      Returns the value of the hasMediaSpoiler record component.
      Returns:
      the value of the hasMediaSpoiler record component
    • checklist

      @Nullable public @Nullable Checklist checklist()
      Returns the value of the checklist record component.
      Returns:
      the value of the checklist record component
    • contact

      @Nullable public @Nullable Contact contact()
      Returns the value of the contact record component.
      Returns:
      the value of the contact record component
    • dice

      @Nullable public @Nullable Dice dice()
      Returns the value of the dice record component.
      Returns:
      the value of the dice record component
    • game

      @Nullable public @Nullable Game game()
      Returns the value of the game record component.
      Returns:
      the value of the game record component
    • giveaway

      @Nullable public @Nullable Giveaway giveaway()
      Returns the value of the giveaway record component.
      Returns:
      the value of the giveaway record component
    • giveawayWinners

      @Nullable public @Nullable GiveawayWinners giveawayWinners()
      Returns the value of the giveawayWinners record component.
      Returns:
      the value of the giveawayWinners record component
    • invoice

      @Nullable public @Nullable Invoice invoice()
      Returns the value of the invoice record component.
      Returns:
      the value of the invoice record component
    • location

      @Nullable public @Nullable Location location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • poll

      @Nullable public @Nullable Poll poll()
      Returns the value of the poll record component.
      Returns:
      the value of the poll record component
    • venue

      @Nullable public @Nullable Venue venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component