Class TdApi.Community

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Community
Enclosing class:
TdApi

public static class TdApi.Community extends TdApi.Object
Represents a community consisting of supergroup chats, channel chats and chats with bots.
  • Field Details

    • id

      public long id
      Community identifier.
    • haveAccess

      public boolean 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

      public String name
      Community name.
    • photo

      public TdApi.ChatPhotoInfo photo
      Community photo; may be null.
    • date

      public int 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

      public TdApi.CommunityPermissions permissions
      Actions that non-administrator community members are allowed to take in the community.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR