java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.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
Modifier and TypeFieldDescriptionstatic final int
int
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.boolean
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.boolean
True, if the supergroup is connected to a location, i.e.long
Supergroup or channel identifier.boolean
True, if the supergroup is a broadcast group, i.e.boolean
True, if the supergroup is a channel.boolean
True, if many users reported this supergroup or channel as a fake account.boolean
True, if many users reported this supergroup or channel as a scam.boolean
True, if the slow mode is enabled in the supergroup.boolean
True, if the supergroup or channel is verified.int
Number 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.boolean
True, 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 be always empty.Username of the supergroup or channel; empty for private supergroups or channels. -
Constructor Summary
ConstructorDescriptionRepresents 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).Supergroup
(DataInput input) Represents a supergroup or channel with zero or more members (subscribers in the case of channels). -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idSupergroup or channel identifier. -
username
Username of the supergroup or channel; empty for private supergroups or channels. -
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 be always 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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules. -
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. -
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. -
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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- 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, 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
- long Supergroup or channel identifier.username
- String Username of the supergroup or channel; empty for private supergroups or channels.date
- int 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
- ChatMemberStatus Status of the current user in the supergroup or channel; custom title will be always empty.memberCount
- int 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
- boolean True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.hasLocation
- boolean True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.signMessages
- boolean True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels.isSlowModeEnabled
- boolean True, if the slow mode is enabled in the supergroup.isChannel
- boolean True, if the supergroup is a channel.isBroadcastGroup
- boolean 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
- boolean True, if the supergroup or channel is verified.restrictionReason
- String If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.isScam
- boolean True, if many users reported this supergroup or channel as a scam.isFake
- boolean True, if many users reported this supergroup or channel as a fake account.
-
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.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-