Record Class ChatFullInfo

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatFullInfo
All Implemented Interfaces:
Serializable, ApiResult

public record ChatFullInfo(String id, String type, @Nullable String title, @Nullable String username, @Nullable String firstName, @Nullable String lastName, boolean isForum, boolean isDirectMessages, int accentColorId, int maxReactionCount, @Nullable ChatPhoto photo, @Nullable String[] activeUsernames, @Nullable Birthdate birthdate, @Nullable String businessIntro, @Nullable BusinessLocation businessLocation, @Nullable BusinessOpeningHours businessOpeningHours, @Nullable Chat personalChat, @Nullable Chat parentChat, @Nullable ReactionType[] availableReactions, @Nullable String backgroundCustomEmojiId, int profileAccentColorId, @Nullable String profileBackgroundCustomEmojiId, @Nullable String emojiStatusCustomEmojiId, @Nullable Date emojiStatusExpirationDate, @Nullable String bio, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoMessages, boolean joinToSendMessages, boolean joinByRequest, @Nullable String description, @Nullable String inviteLink, @Nullable Message pinnedMessage, @Nullable ChatPermissions permissions, @Nullable AcceptedGiftTypes acceptedGiftTypes, boolean canSendPaidMedia, int slowModeDelay, int unrestrictBoostCount, int messageAutoDeleteTime, boolean hasAggressiveAntiSpamEnabled, boolean hasHiddenMembers, boolean hasProtectedContent, boolean hasVisibleHistory, @Nullable String stickerSetName, boolean canSetStickerSet, @Nullable String customEmojiStickerSetName, @Nullable Long linkedChatId, @Nullable ChatLocation location, @Nullable UserRating rating, @Nullable Audio firstProfileAudio, @Nullable UniqueGiftColors uniqueGiftColors, int paidMessageStarCount) extends Record implements ApiResult
See Also:
  • Constructor Details

    • ChatFullInfo

      public ChatFullInfo(String id, String type, @Nullable @Nullable String title, @Nullable @Nullable String username, @Nullable @Nullable String firstName, @Nullable @Nullable String lastName, boolean isForum, boolean isDirectMessages, int accentColorId, int maxReactionCount, @Nullable @Nullable ChatPhoto photo, @Nullable @Nullable String[] activeUsernames, @Nullable @Nullable Birthdate birthdate, @Nullable @Nullable String businessIntro, @Nullable @Nullable BusinessLocation businessLocation, @Nullable @Nullable BusinessOpeningHours businessOpeningHours, @Nullable @Nullable Chat personalChat, @Nullable @Nullable Chat parentChat, @Nullable @Nullable ReactionType[] availableReactions, @Nullable @Nullable String backgroundCustomEmojiId, int profileAccentColorId, @Nullable @Nullable String profileBackgroundCustomEmojiId, @Nullable @Nullable String emojiStatusCustomEmojiId, @Nullable @Nullable Date emojiStatusExpirationDate, @Nullable @Nullable String bio, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoMessages, boolean joinToSendMessages, boolean joinByRequest, @Nullable @Nullable String description, @Nullable @Nullable String inviteLink, @Nullable @Nullable Message pinnedMessage, @Nullable @Nullable ChatPermissions permissions, @Nullable @Nullable AcceptedGiftTypes acceptedGiftTypes, boolean canSendPaidMedia, int slowModeDelay, int unrestrictBoostCount, int messageAutoDeleteTime, boolean hasAggressiveAntiSpamEnabled, boolean hasHiddenMembers, boolean hasProtectedContent, boolean hasVisibleHistory, @Nullable @Nullable String stickerSetName, boolean canSetStickerSet, @Nullable @Nullable String customEmojiStickerSetName, @Nullable @Nullable Long linkedChatId, @Nullable @Nullable ChatLocation location, @Nullable @Nullable UserRating rating, @Nullable @Nullable Audio firstProfileAudio, @Nullable @Nullable UniqueGiftColors uniqueGiftColors, int paidMessageStarCount)
      Creates an instance of a ChatFullInfo record class.
      Parameters:
      id - the value for the id record component
      type - the value for the type record component
      title - the value for the title record component
      username - the value for the username record component
      firstName - the value for the firstName record component
      lastName - the value for the lastName record component
      isForum - the value for the isForum record component
      isDirectMessages - the value for the isDirectMessages record component
      accentColorId - the value for the accentColorId record component
      maxReactionCount - the value for the maxReactionCount record component
      photo - the value for the photo record component
      activeUsernames - the value for the activeUsernames record component
      birthdate - the value for the birthdate record component
      businessIntro - the value for the businessIntro record component
      businessLocation - the value for the businessLocation record component
      businessOpeningHours - the value for the businessOpeningHours record component
      personalChat - the value for the personalChat record component
      parentChat - the value for the parentChat record component
      availableReactions - the value for the availableReactions record component
      backgroundCustomEmojiId - the value for the backgroundCustomEmojiId record component
      profileAccentColorId - the value for the profileAccentColorId record component
      profileBackgroundCustomEmojiId - the value for the profileBackgroundCustomEmojiId record component
      emojiStatusCustomEmojiId - the value for the emojiStatusCustomEmojiId record component
      emojiStatusExpirationDate - the value for the emojiStatusExpirationDate record component
      bio - the value for the bio record component
      hasPrivateForwards - the value for the hasPrivateForwards record component
      hasRestrictedVoiceAndVideoMessages - the value for the hasRestrictedVoiceAndVideoMessages record component
      joinToSendMessages - the value for the joinToSendMessages record component
      joinByRequest - the value for the joinByRequest record component
      description - the value for the description record component
      inviteLink - the value for the inviteLink record component
      pinnedMessage - the value for the pinnedMessage record component
      permissions - the value for the permissions record component
      acceptedGiftTypes - the value for the acceptedGiftTypes record component
      canSendPaidMedia - the value for the canSendPaidMedia record component
      slowModeDelay - the value for the slowModeDelay record component
      unrestrictBoostCount - the value for the unrestrictBoostCount record component
      messageAutoDeleteTime - the value for the messageAutoDeleteTime record component
      hasAggressiveAntiSpamEnabled - the value for the hasAggressiveAntiSpamEnabled record component
      hasHiddenMembers - the value for the hasHiddenMembers record component
      hasProtectedContent - the value for the hasProtectedContent record component
      hasVisibleHistory - the value for the hasVisibleHistory record component
      stickerSetName - the value for the stickerSetName record component
      canSetStickerSet - the value for the canSetStickerSet record component
      customEmojiStickerSetName - the value for the customEmojiStickerSetName record component
      linkedChatId - the value for the linkedChatId record component
      location - the value for the location record component
      rating - the value for the rating record component
      firstProfileAudio - the value for the firstProfileAudio record component
      uniqueGiftColors - the value for the uniqueGiftColors record component
      paidMessageStarCount - the value for the paidMessageStarCount 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • title

      @Nullable public @Nullable String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • username

      @Nullable public @Nullable String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • firstName

      @Nullable public @Nullable String firstName()
      Returns the value of the firstName record component.
      Returns:
      the value of the firstName record component
    • lastName

      @Nullable public @Nullable String lastName()
      Returns the value of the lastName record component.
      Returns:
      the value of the lastName record component
    • isForum

      public boolean isForum()
      Returns the value of the isForum record component.
      Returns:
      the value of the isForum record component
    • isDirectMessages

      public boolean isDirectMessages()
      Returns the value of the isDirectMessages record component.
      Returns:
      the value of the isDirectMessages record component
    • accentColorId

      public int accentColorId()
      Returns the value of the accentColorId record component.
      Returns:
      the value of the accentColorId record component
    • maxReactionCount

      public int maxReactionCount()
      Returns the value of the maxReactionCount record component.
      Returns:
      the value of the maxReactionCount record component
    • photo

      @Nullable public @Nullable ChatPhoto photo()
      Returns the value of the photo record component.
      Returns:
      the value of the photo record component
    • activeUsernames

      @Nullable public @Nullable String[] activeUsernames()
      Returns the value of the activeUsernames record component.
      Returns:
      the value of the activeUsernames record component
    • birthdate

      @Nullable public @Nullable Birthdate birthdate()
      Returns the value of the birthdate record component.
      Returns:
      the value of the birthdate record component
    • businessIntro

      @Nullable public @Nullable String businessIntro()
      Returns the value of the businessIntro record component.
      Returns:
      the value of the businessIntro record component
    • businessLocation

      @Nullable public @Nullable BusinessLocation businessLocation()
      Returns the value of the businessLocation record component.
      Returns:
      the value of the businessLocation record component
    • businessOpeningHours

      @Nullable public @Nullable BusinessOpeningHours businessOpeningHours()
      Returns the value of the businessOpeningHours record component.
      Returns:
      the value of the businessOpeningHours record component
    • personalChat

      @Nullable public @Nullable Chat personalChat()
      Returns the value of the personalChat record component.
      Returns:
      the value of the personalChat record component
    • parentChat

      @Nullable public @Nullable Chat parentChat()
      Returns the value of the parentChat record component.
      Returns:
      the value of the parentChat record component
    • availableReactions

      @Nullable public @Nullable ReactionType[] availableReactions()
      Returns the value of the availableReactions record component.
      Returns:
      the value of the availableReactions record component
    • backgroundCustomEmojiId

      @Nullable public @Nullable String backgroundCustomEmojiId()
      Returns the value of the backgroundCustomEmojiId record component.
      Returns:
      the value of the backgroundCustomEmojiId record component
    • profileAccentColorId

      public int profileAccentColorId()
      Returns the value of the profileAccentColorId record component.
      Returns:
      the value of the profileAccentColorId record component
    • profileBackgroundCustomEmojiId

      @Nullable public @Nullable String profileBackgroundCustomEmojiId()
      Returns the value of the profileBackgroundCustomEmojiId record component.
      Returns:
      the value of the profileBackgroundCustomEmojiId record component
    • emojiStatusCustomEmojiId

      @Nullable public @Nullable String emojiStatusCustomEmojiId()
      Returns the value of the emojiStatusCustomEmojiId record component.
      Returns:
      the value of the emojiStatusCustomEmojiId record component
    • emojiStatusExpirationDate

      @Nullable public @Nullable Date emojiStatusExpirationDate()
      Returns the value of the emojiStatusExpirationDate record component.
      Returns:
      the value of the emojiStatusExpirationDate record component
    • bio

      @Nullable public @Nullable String bio()
      Returns the value of the bio record component.
      Returns:
      the value of the bio record component
    • hasPrivateForwards

      public boolean hasPrivateForwards()
      Returns the value of the hasPrivateForwards record component.
      Returns:
      the value of the hasPrivateForwards record component
    • hasRestrictedVoiceAndVideoMessages

      public boolean hasRestrictedVoiceAndVideoMessages()
      Returns the value of the hasRestrictedVoiceAndVideoMessages record component.
      Returns:
      the value of the hasRestrictedVoiceAndVideoMessages record component
    • joinToSendMessages

      public boolean joinToSendMessages()
      Returns the value of the joinToSendMessages record component.
      Returns:
      the value of the joinToSendMessages record component
    • joinByRequest

      public boolean joinByRequest()
      Returns the value of the joinByRequest record component.
      Returns:
      the value of the joinByRequest record component
    • description

      @Nullable public @Nullable String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • inviteLink

      @Nullable public @Nullable String inviteLink()
      Returns the value of the inviteLink record component.
      Returns:
      the value of the inviteLink record component
    • pinnedMessage

      @Nullable public @Nullable Message pinnedMessage()
      Returns the value of the pinnedMessage record component.
      Returns:
      the value of the pinnedMessage record component
    • permissions

      @Nullable public @Nullable ChatPermissions permissions()
      Returns the value of the permissions record component.
      Returns:
      the value of the permissions record component
    • acceptedGiftTypes

      @Nullable public @Nullable AcceptedGiftTypes acceptedGiftTypes()
      Returns the value of the acceptedGiftTypes record component.
      Returns:
      the value of the acceptedGiftTypes record component
    • canSendPaidMedia

      public boolean canSendPaidMedia()
      Returns the value of the canSendPaidMedia record component.
      Returns:
      the value of the canSendPaidMedia record component
    • slowModeDelay

      public int slowModeDelay()
      Returns the value of the slowModeDelay record component.
      Returns:
      the value of the slowModeDelay record component
    • unrestrictBoostCount

      public int unrestrictBoostCount()
      Returns the value of the unrestrictBoostCount record component.
      Returns:
      the value of the unrestrictBoostCount record component
    • messageAutoDeleteTime

      public int messageAutoDeleteTime()
      Returns the value of the messageAutoDeleteTime record component.
      Returns:
      the value of the messageAutoDeleteTime record component
    • hasAggressiveAntiSpamEnabled

      public boolean hasAggressiveAntiSpamEnabled()
      Returns the value of the hasAggressiveAntiSpamEnabled record component.
      Returns:
      the value of the hasAggressiveAntiSpamEnabled record component
    • hasHiddenMembers

      public boolean hasHiddenMembers()
      Returns the value of the hasHiddenMembers record component.
      Returns:
      the value of the hasHiddenMembers record component
    • hasProtectedContent

      public boolean hasProtectedContent()
      Returns the value of the hasProtectedContent record component.
      Returns:
      the value of the hasProtectedContent record component
    • hasVisibleHistory

      public boolean hasVisibleHistory()
      Returns the value of the hasVisibleHistory record component.
      Returns:
      the value of the hasVisibleHistory record component
    • stickerSetName

      @Nullable public @Nullable String stickerSetName()
      Returns the value of the stickerSetName record component.
      Returns:
      the value of the stickerSetName record component
    • canSetStickerSet

      public boolean canSetStickerSet()
      Returns the value of the canSetStickerSet record component.
      Returns:
      the value of the canSetStickerSet record component
    • customEmojiStickerSetName

      @Nullable public @Nullable String customEmojiStickerSetName()
      Returns the value of the customEmojiStickerSetName record component.
      Returns:
      the value of the customEmojiStickerSetName record component
    • linkedChatId

      @Nullable public @Nullable Long linkedChatId()
      Returns the value of the linkedChatId record component.
      Returns:
      the value of the linkedChatId record component
    • location

      @Nullable public @Nullable ChatLocation location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • rating

      @Nullable public @Nullable UserRating rating()
      Returns the value of the rating record component.
      Returns:
      the value of the rating record component
    • firstProfileAudio

      @Nullable public @Nullable Audio firstProfileAudio()
      Returns the value of the firstProfileAudio record component.
      Returns:
      the value of the firstProfileAudio record component
    • uniqueGiftColors

      @Nullable public @Nullable UniqueGiftColors uniqueGiftColors()
      Returns the value of the uniqueGiftColors record component.
      Returns:
      the value of the uniqueGiftColors record component
    • paidMessageStarCount

      public int paidMessageStarCount()
      Returns the value of the paidMessageStarCount record component.
      Returns:
      the value of the paidMessageStarCount record component