Package org.drinkless.tdlib
Class TdApi.Community
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Community
- Enclosing class:
- TdApi
Represents a community consisting of supergroup chats, channel chats and chats with bots.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community.booleanIf false, the community is inaccessible, and the only information known about the community is inside this class.longCommunity identifier.Community name.Actions that non-administrator community members are allowed to take in the community.Community photo; may be null.Status of the current user in the community. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a community consisting of supergroup chats, channel chats and chats with bots.Community(long id, boolean haveAccess, String name, TdApi.ChatPhotoInfo photo, int date, TdApi.CommunityMemberStatus status, TdApi.CommunityPermissions permissions) Represents a community consisting of supergroup chats, channel chats and chats with bots. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idCommunity identifier. -
haveAccess
public boolean haveAccessIf false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method. -
name
Community name. -
photo
Community photo; may be null. -
date
public int datePoint in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community. -
status
Status of the current user in the community. -
permissions
Actions that non-administrator community members are allowed to take in the community. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Community
public Community()Represents a community consisting of supergroup chats, channel chats and chats with bots. -
Community
public Community(long id, boolean haveAccess, String name, TdApi.ChatPhotoInfo photo, int date, TdApi.CommunityMemberStatus status, TdApi.CommunityPermissions permissions) Represents a community consisting of supergroup chats, channel chats and chats with bots.- Parameters:
id- Community identifier.haveAccess- If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method.name- Community name.photo- Community photo; may be null.date- Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community.status- Status of the current user in the community.permissions- Actions that non-administrator community members are allowed to take in the community.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-