Interface Community

Represents a community consisting of supergroup chats, channel chats and chats with bots.

interface Community {
    @type: "community";
    are_chats_collapsed?: boolean;
    date: number;
    have_access?: boolean;
    id: number;
    name: string;
    permissions: CommunityPermissions;
    photo: ChatPhotoInfo;
    status: CommunityMemberStatus;
}

Properties

@type: "community"
are_chats_collapsed?: boolean

True, if all chats of the community are collapsed into one entry in the chat list.

date: number

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.

have_access?: boolean

If false, the community is inaccessible, and the only information known about the community is inside this class. The identifier of the community can't be passed to any method.

id: number

Community identifier.

name: string

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.