java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.SupergroupFullInfo
- Enclosing class:
- TdApi
Contains full information about a supergroup or channel.
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of privileged users in the supergroup or channel; 0 if unknown.int
Number of users banned from chat; 0 if unknown.List of commands of bots in the group.boolean
True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers.boolean
True, if the supergroup or channel statistics are available.boolean
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators.boolean
True, if the supergroup location can be changed.boolean
True, if the supergroup sticker set can be changed.boolean
True, if the chat username can be changed.boolean
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup.static final int
Identifier uniquely determining type of the object.Supergroup or channel description.boolean
True, if aggressive anti-spam checks are enabled in the supergroup.boolean
True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers.Primary invite link for the chat; may be null.boolean
True, if new chat members will have access to old messages.long
Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown.Location to which the supergroup is connected; may be null.int
Number of members in the supergroup or channel; 0 if unknown.Chat photo; may be null if empty or unknown.int
Number of restricted users in the supergroup; 0 if unknown.int
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.double
Time left before next message can be sent in the supergroup, in seconds.long
Identifier of the supergroup sticker set; 0 if none.long
Identifier of the basic group from which supergroup was upgraded; 0 if none.long
Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none. -
Constructor Summary
ConstructorDescriptionContains full information about a supergroup or channel.SupergroupFullInfo
(TdApi.ChatPhoto photo, String description, int memberCount, int administratorCount, int restrictedCount, int bannedCount, long linkedChatId, int slowModeDelay, double slowModeDelayExpiresIn, boolean canGetMembers, boolean hasHiddenMembers, boolean canHideMembers, boolean canSetUsername, boolean canSetStickerSet, boolean canSetLocation, boolean canGetStatistics, boolean canToggleAggressiveAntiSpam, boolean isAllHistoryAvailable, boolean hasAggressiveAntiSpamEnabled, long stickerSetId, TdApi.ChatLocation location, TdApi.ChatInviteLink inviteLink, TdApi.BotCommands[] botCommands, long upgradedFromBasicGroupId, long upgradedFromMaxMessageId) Contains full information about a supergroup or channel.SupergroupFullInfo
(DataInput input) Contains full information about a supergroup or channel. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
photo
Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo. -
description
Supergroup or channel description. -
memberCount
public int memberCountNumber of members in the supergroup or channel; 0 if unknown. -
administratorCount
public int administratorCountNumber of privileged users in the supergroup or channel; 0 if unknown. -
restrictedCount
public int restrictedCountNumber of restricted users in the supergroup; 0 if unknown. -
bannedCount
public int bannedCountNumber of users banned from chat; 0 if unknown. -
linkedChatId
public long linkedChatIdChat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown. -
slowModeDelay
public int slowModeDelayDelay between consecutive sent messages for non-administrator supergroup members, in seconds. -
slowModeDelayExpiresIn
public double slowModeDelayExpiresInTime left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero. -
canGetMembers
public boolean canGetMembersTrue, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers. -
hasHiddenMembers
public boolean hasHiddenMembersTrue, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. -
canHideMembers
public boolean canHideMembersTrue, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators. -
canSetUsername
public boolean canSetUsernameTrue, if the chat username can be changed. -
canSetStickerSet
public boolean canSetStickerSetTrue, if the supergroup sticker set can be changed. -
canSetLocation
public boolean canSetLocationTrue, if the supergroup location can be changed. -
canGetStatistics
public boolean canGetStatisticsTrue, if the supergroup or channel statistics are available. -
canToggleAggressiveAntiSpam
public boolean canToggleAggressiveAntiSpamTrue, if aggressive anti-spam checks can be enabled or disabled in the supergroup. -
isAllHistoryAvailable
public boolean isAllHistoryAvailableTrue, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators. -
hasAggressiveAntiSpamEnabled
public boolean hasAggressiveAntiSpamEnabledTrue, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators. -
stickerSetId
public long stickerSetIdIdentifier of the supergroup sticker set; 0 if none. -
location
Location to which the supergroup is connected; may be null. -
inviteLink
Primary invite link for the chat; may be null. For chat administrators with canInviteUsers right only. -
botCommands
List of commands of bots in the group. -
upgradedFromBasicGroupId
public long upgradedFromBasicGroupIdIdentifier of the basic group from which supergroup was upgraded; 0 if none. -
upgradedFromMaxMessageId
public long upgradedFromMaxMessageIdIdentifier of the last message in the basic group from which supergroup was upgraded; 0 if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SupergroupFullInfo
public SupergroupFullInfo()Contains full information about a supergroup or channel. -
SupergroupFullInfo
public SupergroupFullInfo(TdApi.ChatPhoto photo, String description, int memberCount, int administratorCount, int restrictedCount, int bannedCount, long linkedChatId, int slowModeDelay, double slowModeDelayExpiresIn, boolean canGetMembers, boolean hasHiddenMembers, boolean canHideMembers, boolean canSetUsername, boolean canSetStickerSet, boolean canSetLocation, boolean canGetStatistics, boolean canToggleAggressiveAntiSpam, boolean isAllHistoryAvailable, boolean hasAggressiveAntiSpamEnabled, long stickerSetId, TdApi.ChatLocation location, TdApi.ChatInviteLink inviteLink, TdApi.BotCommands[] botCommands, long upgradedFromBasicGroupId, long upgradedFromMaxMessageId) Contains full information about a supergroup or channel.- Parameters:
photo
- Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo.description
- Supergroup or channel description.memberCount
- Number of members in the supergroup or channel; 0 if unknown.administratorCount
- Number of privileged users in the supergroup or channel; 0 if unknown.restrictedCount
- Number of restricted users in the supergroup; 0 if unknown.bannedCount
- Number of users banned from chat; 0 if unknown.linkedChatId
- Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown.slowModeDelay
- Delay between consecutive sent messages for non-administrator supergroup members, in seconds.slowModeDelayExpiresIn
- Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero.canGetMembers
- True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers.hasHiddenMembers
- True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers.canHideMembers
- True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators.canSetUsername
- True, if the chat username can be changed.canSetStickerSet
- True, if the supergroup sticker set can be changed.canSetLocation
- True, if the supergroup location can be changed.canGetStatistics
- True, if the supergroup or channel statistics are available.canToggleAggressiveAntiSpam
- True, if aggressive anti-spam checks can be enabled or disabled in the supergroup.isAllHistoryAvailable
- True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators.hasAggressiveAntiSpamEnabled
- True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators.stickerSetId
- Identifier of the supergroup sticker set; 0 if none.location
- Location to which the supergroup is connected; may be null.inviteLink
- Primary invite link for the chat; may be null. For chat administrators with canInviteUsers right only.botCommands
- List of commands of bots in the group.upgradedFromBasicGroupId
- Identifier of the basic group from which supergroup was upgraded; 0 if none.upgradedFromMaxMessageId
- Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none.
-
SupergroupFullInfo
Contains full information about a supergroup or channel.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-