Package org.drinkless.tdlib
Class TdApi.SupergroupFullInfo
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.SupergroupFullInfo
-
- Enclosing class:
- TdApi
public static class TdApi.SupergroupFullInfo extends TdApi.Object
Contains full information about a supergroup or channel.
-
-
Field Summary
Fields Modifier and Type Field Description intadministratorCountNumber of privileged users in the supergroup or channel; 0 if unknown.intbannedCountNumber of users banned from chat; 0 if unknown.TdApi.BotCommands[]botCommandsList of commands of bots in the group.booleancanGetMembersTrue, if members of the chat can be retrieved.booleancanGetStatisticsTrue, if the supergroup or channel statistics are available.booleancanSetLocationTrue, if the supergroup location can be changed.booleancanSetStickerSetTrue, if the supergroup sticker set can be changed.booleancanSetUsernameTrue, if the chat username can be changed.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringdescriptionSupergroup or channel description.TdApi.ChatInviteLinkinviteLinkPrimary invite link for this chat; may be null.booleanisAllHistoryAvailableTrue, if new chat members will have access to old messages.longlinkedChatIdChat 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.TdApi.ChatLocationlocationLocation to which the supergroup is connected; may be null.intmemberCountNumber of members in the supergroup or channel; 0 if unknown.TdApi.ChatPhotophotoChat photo; may be null.intrestrictedCountNumber of restricted users in the supergroup; 0 if unknown.intslowModeDelayDelay between consecutive sent messages for non-administrator supergroup members, in seconds.doubleslowModeDelayExpiresInTime left before next message can be sent in the supergroup, in seconds.longstickerSetIdIdentifier of the supergroup sticker set; 0 if none.longupgradedFromBasicGroupIdIdentifier of the basic group from which supergroup was upgraded; 0 if none.longupgradedFromMaxMessageIdIdentifier of the last message in the basic group from which supergroup was upgraded; 0 if none.
-
Constructor Summary
Constructors Constructor Description SupergroupFullInfo()Contains 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 canSetUsername, boolean canSetStickerSet, boolean canSetLocation, boolean canGetStatistics, boolean isAllHistoryAvailable, long stickerSetId, TdApi.ChatLocation location, TdApi.ChatInviteLink inviteLink, TdApi.BotCommands[] botCommands, long upgradedFromBasicGroupId, long upgradedFromMaxMessageId)Contains full information about a supergroup or channel.
-
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
-
photo
public TdApi.ChatPhoto photo
Chat photo; may be null.
-
description
public String description
Supergroup or channel description.
-
memberCount
public int memberCount
Number of members in the supergroup or channel; 0 if unknown.
-
administratorCount
public int administratorCount
Number of privileged users in the supergroup or channel; 0 if unknown.
-
restrictedCount
public int restrictedCount
Number of restricted users in the supergroup; 0 if unknown.
-
bannedCount
public int bannedCount
Number of users banned from chat; 0 if unknown.
-
linkedChatId
public long 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
public int slowModeDelay
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.
-
slowModeDelayExpiresIn
public double 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
public boolean canGetMembers
True, if members of the chat can be retrieved.
-
canSetUsername
public boolean canSetUsername
True, if the chat username can be changed.
-
canSetStickerSet
public boolean canSetStickerSet
True, if the supergroup sticker set can be changed.
-
canSetLocation
public boolean canSetLocation
True, if the supergroup location can be changed.
-
canGetStatistics
public boolean canGetStatistics
True, if the supergroup or channel statistics are available.
-
isAllHistoryAvailable
public boolean isAllHistoryAvailable
True, if new chat members will have access to old messages. In public or discussion groups and both public and private channels, old messages are always available, so this option affects only private supergroups without a linked chat. The value of this field is only available for chat administrators.
-
stickerSetId
public long stickerSetId
Identifier of the supergroup sticker set; 0 if none.
-
location
public TdApi.ChatLocation location
Location to which the supergroup is connected; may be null.
-
inviteLink
public TdApi.ChatInviteLink inviteLink
Primary invite link for this chat; may be null. For chat administrators with canInviteUsers right only.
-
botCommands
public TdApi.BotCommands[] botCommands
List of commands of bots in the group.
-
upgradedFromBasicGroupId
public long upgradedFromBasicGroupId
Identifier of the basic group from which supergroup was upgraded; 0 if none.
-
upgradedFromMaxMessageId
public long upgradedFromMaxMessageId
Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 canSetUsername, boolean canSetStickerSet, boolean canSetLocation, boolean canGetStatistics, boolean isAllHistoryAvailable, 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.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.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.isAllHistoryAvailable- True, if new chat members will have access to old messages. In public or discussion groups and both public and private channels, old messages are always available, so this option affects only private supergroups without a linked chat. The value of this field is only available for 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 this 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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-