Package org.drinkless.tdlib
Class TdApi.Supergroup
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Supergroup
-
- Enclosing class:
- TdApi
public static class TdApi.Supergroup extends TdApi.Object
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
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.intdatePoint 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.booleanhasLinkedChatTrue, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.booleanhasLocationTrue, if the supergroup is connected to a location, i.e.longidSupergroup or channel identifier.booleanisBroadcastGroupTrue, if the supergroup is a broadcast group, i.e.booleanisChannelTrue, if the supergroup is a channel.booleanisFakeTrue, if many users reported this supergroup or channel as a fake account.booleanisScamTrue, if many users reported this supergroup or channel as a scam.booleanisSlowModeEnabledTrue, if the slow mode is enabled in the supergroup.booleanisVerifiedTrue, if the supergroup or channel is verified.intmemberCountNumber of members in the supergroup or channel; 0 if unknown.StringrestrictionReasonIf non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.booleansignMessagesTrue, if messages sent to the channel need to contain information about the sender.TdApi.ChatMemberStatusstatusStatus of the current user in the supergroup or channel; custom title will be always empty.StringusernameUsername of the supergroup or channel; empty for private supergroups or channels.
-
Constructor Summary
Constructors Constructor Description Supergroup()Represents a supergroup or channel with zero or more members (subscribers in the case of channels).Supergroup(long id, String username, int date, TdApi.ChatMemberStatus status, int memberCount, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean isSlowModeEnabled, boolean isChannel, boolean isBroadcastGroup, boolean isVerified, String restrictionReason, boolean isScam, boolean isFake)Represents a supergroup or channel with zero or more members (subscribers in the case of channels).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
Supergroup or channel identifier.
-
username
public String username
Username of the supergroup or channel; empty for private supergroups or channels.
-
date
public int 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
public TdApi.ChatMemberStatus status
Status of the current user in the supergroup or channel; custom title will be always empty.
-
memberCount
public int 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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules.
-
hasLinkedChat
public boolean hasLinkedChat
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.
-
hasLocation
public boolean hasLocation
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.
-
signMessages
public boolean signMessages
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels.
-
isSlowModeEnabled
public boolean isSlowModeEnabled
True, if the slow mode is enabled in the supergroup.
-
isChannel
public boolean isChannel
True, if the supergroup is a channel.
-
isBroadcastGroup
public boolean 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.
-
isVerified
public boolean isVerified
True, if the supergroup or channel is verified.
-
restrictionReason
public String 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 isScam
True, if many users reported this supergroup or channel as a scam.
-
isFake
public boolean isFake
True, if many users reported this supergroup or channel as a fake account.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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, String username, int date, TdApi.ChatMemberStatus status, int memberCount, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean isSlowModeEnabled, boolean isChannel, boolean isBroadcastGroup, boolean isVerified, String restrictionReason, boolean isScam, boolean isFake)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.username- Username of the supergroup or channel; empty for private supergroups or channels.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 be always 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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules.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.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.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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-