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 Summary
ConstructorsConstructorDescriptionChatFullInfo(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) Creates an instance of aChatFullInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccentColorIdrecord component.@Nullable AcceptedGiftTypesReturns the value of theacceptedGiftTypesrecord component.@Nullable String[]Returns the value of theactiveUsernamesrecord component.@Nullable ReactionType[]Returns the value of theavailableReactionsrecord component.@Nullable StringReturns the value of thebackgroundCustomEmojiIdrecord component.@Nullable Stringbio()Returns the value of thebiorecord component.@Nullable BirthdateReturns the value of thebirthdaterecord component.@Nullable StringReturns the value of thebusinessIntrorecord component.@Nullable BusinessLocationReturns the value of thebusinessLocationrecord component.@Nullable BusinessOpeningHoursReturns the value of thebusinessOpeningHoursrecord component.booleanReturns the value of thecanSendPaidMediarecord component.booleanReturns the value of thecanSetStickerSetrecord component.@Nullable StringReturns the value of thecustomEmojiStickerSetNamerecord component.@Nullable StringReturns the value of thedescriptionrecord component.@Nullable StringReturns the value of theemojiStatusCustomEmojiIdrecord component.@Nullable DateReturns the value of theemojiStatusExpirationDaterecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of thefirstNamerecord component.@Nullable AudioReturns the value of thefirstProfileAudiorecord component.booleanReturns the value of thehasAggressiveAntiSpamEnabledrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasHiddenMembersrecord component.booleanReturns the value of thehasPrivateForwardsrecord component.booleanReturns the value of thehasProtectedContentrecord component.booleanReturns the value of thehasRestrictedVoiceAndVideoMessagesrecord component.booleanReturns the value of thehasVisibleHistoryrecord component.id()Returns the value of theidrecord component.@Nullable StringReturns the value of theinviteLinkrecord component.booleanReturns the value of theisDirectMessagesrecord component.booleanisForum()Returns the value of theisForumrecord component.booleanReturns the value of thejoinByRequestrecord component.booleanReturns the value of thejoinToSendMessagesrecord component.@Nullable StringlastName()Returns the value of thelastNamerecord component.@Nullable LongReturns the value of thelinkedChatIdrecord component.@Nullable ChatLocationlocation()Returns the value of thelocationrecord component.intReturns the value of themaxReactionCountrecord component.intReturns the value of themessageAutoDeleteTimerecord component.intReturns the value of thepaidMessageStarCountrecord component.@Nullable ChatReturns the value of theparentChatrecord component.@Nullable ChatPermissionsReturns the value of thepermissionsrecord component.@Nullable ChatReturns the value of thepersonalChatrecord component.@Nullable ChatPhotophoto()Returns the value of thephotorecord component.@Nullable MessageReturns the value of thepinnedMessagerecord component.intReturns the value of theprofileAccentColorIdrecord component.@Nullable StringReturns the value of theprofileBackgroundCustomEmojiIdrecord component.@Nullable UserRatingrating()Returns the value of theratingrecord component.intReturns the value of theslowModeDelayrecord component.@Nullable StringReturns the value of thestickerSetNamerecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.@Nullable UniqueGiftColorsReturns the value of theuniqueGiftColorsrecord component.intReturns the value of theunrestrictBoostCountrecord component.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
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 aChatFullInforecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componenttitle- the value for thetitlerecord componentusername- the value for theusernamerecord componentfirstName- the value for thefirstNamerecord componentlastName- the value for thelastNamerecord componentisForum- the value for theisForumrecord componentisDirectMessages- the value for theisDirectMessagesrecord componentaccentColorId- the value for theaccentColorIdrecord componentmaxReactionCount- the value for themaxReactionCountrecord componentphoto- the value for thephotorecord componentactiveUsernames- the value for theactiveUsernamesrecord componentbirthdate- the value for thebirthdaterecord componentbusinessIntro- the value for thebusinessIntrorecord componentbusinessLocation- the value for thebusinessLocationrecord componentbusinessOpeningHours- the value for thebusinessOpeningHoursrecord componentpersonalChat- the value for thepersonalChatrecord componentparentChat- the value for theparentChatrecord componentavailableReactions- the value for theavailableReactionsrecord componentbackgroundCustomEmojiId- the value for thebackgroundCustomEmojiIdrecord componentprofileAccentColorId- the value for theprofileAccentColorIdrecord componentprofileBackgroundCustomEmojiId- the value for theprofileBackgroundCustomEmojiIdrecord componentemojiStatusCustomEmojiId- the value for theemojiStatusCustomEmojiIdrecord componentemojiStatusExpirationDate- the value for theemojiStatusExpirationDaterecord componentbio- the value for thebiorecord componenthasPrivateForwards- the value for thehasPrivateForwardsrecord componenthasRestrictedVoiceAndVideoMessages- the value for thehasRestrictedVoiceAndVideoMessagesrecord componentjoinToSendMessages- the value for thejoinToSendMessagesrecord componentjoinByRequest- the value for thejoinByRequestrecord componentdescription- the value for thedescriptionrecord componentinviteLink- the value for theinviteLinkrecord componentpinnedMessage- the value for thepinnedMessagerecord componentpermissions- the value for thepermissionsrecord componentacceptedGiftTypes- the value for theacceptedGiftTypesrecord componentcanSendPaidMedia- the value for thecanSendPaidMediarecord componentslowModeDelay- the value for theslowModeDelayrecord componentunrestrictBoostCount- the value for theunrestrictBoostCountrecord componentmessageAutoDeleteTime- the value for themessageAutoDeleteTimerecord componenthasAggressiveAntiSpamEnabled- the value for thehasAggressiveAntiSpamEnabledrecord componenthasHiddenMembers- the value for thehasHiddenMembersrecord componenthasProtectedContent- the value for thehasProtectedContentrecord componenthasVisibleHistory- the value for thehasVisibleHistoryrecord componentstickerSetName- the value for thestickerSetNamerecord componentcanSetStickerSet- the value for thecanSetStickerSetrecord componentcustomEmojiStickerSetName- the value for thecustomEmojiStickerSetNamerecord componentlinkedChatId- the value for thelinkedChatIdrecord componentlocation- the value for thelocationrecord componentrating- the value for theratingrecord componentfirstProfileAudio- the value for thefirstProfileAudiorecord componentuniqueGiftColors- the value for theuniqueGiftColorsrecord componentpaidMessageStarCount- the value for thepaidMessageStarCountrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
isForum
public boolean isForum()Returns the value of theisForumrecord component.- Returns:
- the value of the
isForumrecord component
-
isDirectMessages
public boolean isDirectMessages()Returns the value of theisDirectMessagesrecord component.- Returns:
- the value of the
isDirectMessagesrecord component
-
accentColorId
public int accentColorId()Returns the value of theaccentColorIdrecord component.- Returns:
- the value of the
accentColorIdrecord component
-
maxReactionCount
public int maxReactionCount()Returns the value of themaxReactionCountrecord component.- Returns:
- the value of the
maxReactionCountrecord component
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-
activeUsernames
Returns the value of theactiveUsernamesrecord component.- Returns:
- the value of the
activeUsernamesrecord component
-
birthdate
Returns the value of thebirthdaterecord component.- Returns:
- the value of the
birthdaterecord component
-
businessIntro
Returns the value of thebusinessIntrorecord component.- Returns:
- the value of the
businessIntrorecord component
-
businessLocation
Returns the value of thebusinessLocationrecord component.- Returns:
- the value of the
businessLocationrecord component
-
businessOpeningHours
Returns the value of thebusinessOpeningHoursrecord component.- Returns:
- the value of the
businessOpeningHoursrecord component
-
personalChat
Returns the value of thepersonalChatrecord component.- Returns:
- the value of the
personalChatrecord component
-
parentChat
Returns the value of theparentChatrecord component.- Returns:
- the value of the
parentChatrecord component
-
availableReactions
Returns the value of theavailableReactionsrecord component.- Returns:
- the value of the
availableReactionsrecord component
-
backgroundCustomEmojiId
Returns the value of thebackgroundCustomEmojiIdrecord component.- Returns:
- the value of the
backgroundCustomEmojiIdrecord component
-
profileAccentColorId
public int profileAccentColorId()Returns the value of theprofileAccentColorIdrecord component.- Returns:
- the value of the
profileAccentColorIdrecord component
-
profileBackgroundCustomEmojiId
Returns the value of theprofileBackgroundCustomEmojiIdrecord component.- Returns:
- the value of the
profileBackgroundCustomEmojiIdrecord component
-
emojiStatusCustomEmojiId
Returns the value of theemojiStatusCustomEmojiIdrecord component.- Returns:
- the value of the
emojiStatusCustomEmojiIdrecord component
-
emojiStatusExpirationDate
Returns the value of theemojiStatusExpirationDaterecord component.- Returns:
- the value of the
emojiStatusExpirationDaterecord component
-
bio
Returns the value of thebiorecord component.- Returns:
- the value of the
biorecord component
-
hasPrivateForwards
public boolean hasPrivateForwards()Returns the value of thehasPrivateForwardsrecord component.- Returns:
- the value of the
hasPrivateForwardsrecord component
-
hasRestrictedVoiceAndVideoMessages
public boolean hasRestrictedVoiceAndVideoMessages()Returns the value of thehasRestrictedVoiceAndVideoMessagesrecord component.- Returns:
- the value of the
hasRestrictedVoiceAndVideoMessagesrecord component
-
joinToSendMessages
public boolean joinToSendMessages()Returns the value of thejoinToSendMessagesrecord component.- Returns:
- the value of the
joinToSendMessagesrecord component
-
joinByRequest
public boolean joinByRequest()Returns the value of thejoinByRequestrecord component.- Returns:
- the value of the
joinByRequestrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inviteLink
Returns the value of theinviteLinkrecord component.- Returns:
- the value of the
inviteLinkrecord component
-
pinnedMessage
Returns the value of thepinnedMessagerecord component.- Returns:
- the value of the
pinnedMessagerecord component
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-
acceptedGiftTypes
Returns the value of theacceptedGiftTypesrecord component.- Returns:
- the value of the
acceptedGiftTypesrecord component
-
canSendPaidMedia
public boolean canSendPaidMedia()Returns the value of thecanSendPaidMediarecord component.- Returns:
- the value of the
canSendPaidMediarecord component
-
slowModeDelay
public int slowModeDelay()Returns the value of theslowModeDelayrecord component.- Returns:
- the value of the
slowModeDelayrecord component
-
unrestrictBoostCount
public int unrestrictBoostCount()Returns the value of theunrestrictBoostCountrecord component.- Returns:
- the value of the
unrestrictBoostCountrecord component
-
messageAutoDeleteTime
public int messageAutoDeleteTime()Returns the value of themessageAutoDeleteTimerecord component.- Returns:
- the value of the
messageAutoDeleteTimerecord component
-
hasAggressiveAntiSpamEnabled
public boolean hasAggressiveAntiSpamEnabled()Returns the value of thehasAggressiveAntiSpamEnabledrecord component.- Returns:
- the value of the
hasAggressiveAntiSpamEnabledrecord component
-
hasHiddenMembers
public boolean hasHiddenMembers()Returns the value of thehasHiddenMembersrecord component.- Returns:
- the value of the
hasHiddenMembersrecord component
-
hasProtectedContent
public boolean hasProtectedContent()Returns the value of thehasProtectedContentrecord component.- Returns:
- the value of the
hasProtectedContentrecord component
-
hasVisibleHistory
public boolean hasVisibleHistory()Returns the value of thehasVisibleHistoryrecord component.- Returns:
- the value of the
hasVisibleHistoryrecord component
-
stickerSetName
Returns the value of thestickerSetNamerecord component.- Returns:
- the value of the
stickerSetNamerecord component
-
canSetStickerSet
public boolean canSetStickerSet()Returns the value of thecanSetStickerSetrecord component.- Returns:
- the value of the
canSetStickerSetrecord component
-
customEmojiStickerSetName
Returns the value of thecustomEmojiStickerSetNamerecord component.- Returns:
- the value of the
customEmojiStickerSetNamerecord component
-
linkedChatId
Returns the value of thelinkedChatIdrecord component.- Returns:
- the value of the
linkedChatIdrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
rating
Returns the value of theratingrecord component.- Returns:
- the value of the
ratingrecord component
-
firstProfileAudio
Returns the value of thefirstProfileAudiorecord component.- Returns:
- the value of the
firstProfileAudiorecord component
-
uniqueGiftColors
Returns the value of theuniqueGiftColorsrecord component.- Returns:
- the value of the
uniqueGiftColorsrecord component
-
paidMessageStarCount
public int paidMessageStarCount()Returns the value of thepaidMessageStarCountrecord component.- Returns:
- the value of the
paidMessageStarCountrecord component
-