Skip to content

getGroupInfo ​

api.getGroupInfo(groupId) ​

Parameters ​

  • groupId string | string[]

Return ​

Promise<GroupInfoResponse>

Types ​

ts
export type GroupInfoResponse = {
    removedsGroup: string[];
    unchangedsGroup: string[];
    gridInfoMap: {
        [groupId: string]: GroupInfo & {
            memVerList: string[];
            pendingApprove: GroupInfoPendingApprove;
        };
    };
};

export type GroupInfoPendingApprove = {
    time: number;
    uids: string[] | null;
};

Examples ​

Lấy thông tin của nhóm

ts
const groupId = "0000000000000000000";
api.getGroupInfo(groupId)
    .then(console.log)
    .catch(console.error);