public static class TdApi.Supergroup extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
int |
boostLevel
Approximate boost level for the chat.
|
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 |
hasActiveStories
True, if the supergroup or channel has non-expired stories available to the current user.
|
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.
|
boolean |
hasSensitiveContent
True, if content of media messages in the supergroup or channel chat must be hidden with 18+ spoiler.
|
boolean |
hasUnreadActiveStories
True, if the supergroup or channel has unread non-expired stories available to the current user.
|
long |
id
Supergroup or channel identifier.
|
boolean |
isBroadcastGroup
True, if the supergroup is a broadcast group, i.e.
|
boolean |
isChannel
True, if the supergroup is a channel.
|
boolean |
isFake
True, if many users reported this supergroup or channel as a fake account.
|
boolean |
isForum
True, if the supergroup is a forum with topics.
|
boolean |
isScam
True, if many users reported this supergroup or channel 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.
|
boolean |
joinByRequest
True, if all users directly joining the supergroup need to be approved by supergroup administrators.
|
boolean |
joinToSendMessages
True, if users need to join the supergroup before they can send messages.
|
int |
memberCount
Number of members in the supergroup or channel; 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 |
showMessageSender
True, if messages sent to the channel have information about the sender user.
|
boolean |
signMessages
True, if messages sent to the channel contains name of the sender.
|
TdApi.ChatMemberStatus |
status
Status of the current user in the supergroup or channel; custom title will always be empty.
|
TdApi.Usernames |
usernames
Usernames of the supergroup or channel; may be null.
|
| Constructor and Description |
|---|
Supergroup()
Represents 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 showMessageSender,
boolean joinToSendMessages,
boolean joinByRequest,
boolean isSlowModeEnabled,
boolean isChannel,
boolean isBroadcastGroup,
boolean isForum,
boolean isVerified,
boolean hasSensitiveContent,
java.lang.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).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long id
public TdApi.Usernames usernames
public int date
public TdApi.ChatMemberStatus status
public int memberCount
public int boostLevel
public boolean hasLinkedChat
public boolean hasLocation
public boolean signMessages
public boolean showMessageSender
public boolean joinToSendMessages
public boolean joinByRequest
public boolean isSlowModeEnabled
public boolean isChannel
public boolean isBroadcastGroup
public boolean isForum
public boolean isVerified
public boolean hasSensitiveContent
public java.lang.String restrictionReason
public boolean isScam
public boolean isFake
public boolean hasActiveStories
public boolean hasUnreadActiveStories
public static final int CONSTRUCTOR
public Supergroup()
public Supergroup(long id,
TdApi.Usernames usernames,
int date,
TdApi.ChatMemberStatus status,
int memberCount,
int boostLevel,
boolean hasLinkedChat,
boolean hasLocation,
boolean signMessages,
boolean showMessageSender,
boolean joinToSendMessages,
boolean joinByRequest,
boolean isSlowModeEnabled,
boolean isChannel,
boolean isBroadcastGroup,
boolean isForum,
boolean isVerified,
boolean hasSensitiveContent,
java.lang.String restrictionReason,
boolean isScam,
boolean isFake,
boolean hasActiveStories,
boolean hasUnreadActiveStories)
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, searchPublicChats, or in chatFolderInviteLinkInfo.missingChatIds, or in userFullInfo.personalChatId, or for chats with messages or stories from publicForwards and foundStories.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 contains name of the sender. This field is only applicable to channels.showMessageSender - True, if messages sent to the channel have information about the sender user. 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.hasSensitiveContent - True, if content of media messages in the supergroup or channel chat must be hidden with 18+ spoiler.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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object