Package org.drinkless.tdlib
Class TdApi.Supergroup
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Supergroup
- Enclosing class:
- TdApi
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintApproximate boost level for the chat.static final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.booleanTrue, if the supergroup or channel has non-expired stories available to the current user.booleanTrue, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.booleanTrue, if the supergroup is connected to a location, i.e.booleanTrue, if the supergroup or channel has unread non-expired stories available to the current user.longSupergroup or channel identifier.booleanTrue, if the supergroup is a broadcast group, i.e.booleanTrue, if the supergroup is a channel.booleanTrue, if many users reported this supergroup or channel as a fake account.booleanTrue, if the supergroup is a forum with topics.booleanTrue, if many users reported this supergroup or channel as a scam.booleanTrue, if the slow mode is enabled in the supergroup.booleanTrue, if the supergroup or channel is verified.booleanTrue, if all users directly joining the supergroup need to be approved by supergroup administrators.booleanTrue, if users need to join the supergroup before they can send messages.intNumber of members in the supergroup or channel; 0 if unknown.If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.booleanTrue, if messages sent to the channel need to contain information about the sender.Status of the current user in the supergroup or channel; custom title will always be empty.Usernames of the supergroup or channel; may be null. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a supergroup or channel with zero or more members (subscribers in the case of channels).Supergroup(long id, TdApi.Usernames usernames, int date, TdApi.ChatMemberStatus status, int memberCount, int boostLevel, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean joinToSendMessages, boolean joinByRequest, boolean isSlowModeEnabled, boolean isChannel, boolean isBroadcastGroup, boolean isForum, boolean isVerified, String restrictionReason, boolean isScam, boolean isFake, boolean hasActiveStories, boolean hasUnreadActiveStories) Represents a supergroup or channel with zero or more members (subscribers in the case of channels). -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idSupergroup or channel identifier. -
usernames
Usernames of the supergroup or channel; may be null. -
date
public int datePoint in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member. -
status
Status of the current user in the supergroup or channel; custom title will always be empty. -
memberCount
public int memberCountNumber of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missingChatIds, or in userFullInfo.personalChatId, or for chats with messages or stories from publicForwards. -
boostLevel
public int boostLevelApproximate boost level for the chat. -
hasLinkedChat
public boolean hasLinkedChatTrue, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel. -
hasLocation
public boolean hasLocationTrue, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup. -
signMessages
public boolean signMessagesTrue, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels. -
joinToSendMessages
public boolean joinToSendMessagesTrue, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups. -
joinByRequest
public boolean joinByRequestTrue, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat. -
isSlowModeEnabled
public boolean isSlowModeEnabledTrue, if the slow mode is enabled in the supergroup. -
isChannel
public boolean isChannelTrue, if the supergroup is a channel. -
isBroadcastGroup
public boolean isBroadcastGroupTrue, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members. -
isForum
public boolean isForumTrue, if the supergroup is a forum with topics. -
isVerified
public boolean isVerifiedTrue, if the supergroup or channel is verified. -
restrictionReason
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted. -
isScam
public boolean isScamTrue, if many users reported this supergroup or channel as a scam. -
isFake
public boolean isFakeTrue, if many users reported this supergroup or channel as a fake account. -
hasActiveStories
public boolean hasActiveStoriesTrue, if the supergroup or channel has non-expired stories available to the current user. -
hasUnreadActiveStories
public boolean hasUnreadActiveStoriesTrue, if the supergroup or channel has unread non-expired stories available to the current user. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Supergroup
public Supergroup()Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers. -
Supergroup
public Supergroup(long id, TdApi.Usernames usernames, int date, TdApi.ChatMemberStatus status, int memberCount, int boostLevel, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean joinToSendMessages, boolean joinByRequest, boolean isSlowModeEnabled, boolean isChannel, boolean isBroadcastGroup, boolean isForum, boolean isVerified, String restrictionReason, boolean isScam, boolean isFake, boolean hasActiveStories, boolean hasUnreadActiveStories) Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.- Parameters:
id- Supergroup or channel identifier.usernames- Usernames of the supergroup or channel; may be null.date- Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.status- Status of the current user in the supergroup or channel; custom title will always be empty.memberCount- Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missingChatIds, or in userFullInfo.personalChatId, or for chats with messages or stories from publicForwards.boostLevel- Approximate boost level for the chat.hasLinkedChat- True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.hasLocation- True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.signMessages- True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels.joinToSendMessages- True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups.joinByRequest- True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat.isSlowModeEnabled- True, if the slow mode is enabled in the supergroup.isChannel- True, if the supergroup is a channel.isBroadcastGroup- True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members.isForum- True, if the supergroup is a forum with topics.isVerified- True, if the supergroup or channel is verified.restrictionReason- If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.isScam- True, if many users reported this supergroup or channel as a scam.isFake- True, if many users reported this supergroup or channel as a fake account.hasActiveStories- True, if the supergroup or channel has non-expired stories available to the current user.hasUnreadActiveStories- True, if the supergroup or channel has unread non-expired stories available to the current user.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-