Interface Community

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

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

Properties

@type: "community"
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. 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.