public static class TdApi.Supergroup extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
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.
|
boolean |
hasLinkedChat
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.
|
boolean |
hasLocation
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.
|
int |
id
Supergroup or channel identifier.
|
boolean |
isChannel
True, if the supergroup is a channel.
|
boolean |
isScam
True, if many users reported this supergroup as a scam.
|
boolean |
isSlowModeEnabled
True, if the slow mode is enabled in the supergroup.
|
boolean |
isVerified
True, if the supergroup or channel is verified.
|
int |
memberCount
Member count; 0 if unknown.
|
java.lang.String |
restrictionReason
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.
|
boolean |
signMessages
True, if messages sent to the channel should contain information about the sender.
|
TdApi.ChatMemberStatus |
status
Status of the current user in the supergroup or channel; custom title will be always empty.
|
java.lang.String |
username
Username of the supergroup or channel; empty for private supergroups or channels.
|
Constructor and Description |
---|
Supergroup()
Represents a supergroup or channel with zero or more members (subscribers in the case of channels).
|
Supergroup(int id,
java.lang.String username,
int date,
TdApi.ChatMemberStatus status,
int memberCount,
boolean hasLinkedChat,
boolean hasLocation,
boolean signMessages,
boolean isSlowModeEnabled,
boolean isChannel,
boolean isVerified,
java.lang.String restrictionReason,
boolean isScam)
Represents a supergroup or channel with zero or more members (subscribers in the case of channels).
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int id
public java.lang.String username
public int date
public TdApi.ChatMemberStatus status
public int memberCount
public boolean hasLinkedChat
public boolean hasLocation
public boolean signMessages
public boolean isSlowModeEnabled
public boolean isChannel
public boolean isVerified
public java.lang.String restrictionReason
public boolean isScam
public static final int CONSTRUCTOR
public Supergroup()
public Supergroup(int id, java.lang.String username, int date, TdApi.ChatMemberStatus status, int memberCount, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean isSlowModeEnabled, boolean isChannel, boolean isVerified, java.lang.String restrictionReason, boolean isScam)
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
- Member count; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was found through SearchPublicChats.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 should 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.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 as a scam.public int getConstructor()
getConstructor
in class TdApi.Object