createGroup

Tạo nhóm mới

api.createGroup(options)

Parameters

  • options CreateGroupOptions

Return

Promise<CreateGroupResponse>

Types

export type CreateGroupResponse = {
    groupType: number;
    sucessMembers: string[];
    groupId: string;
    errorMembers: string[];
    error_data: Record<string, unknown>;
};

export type CreateGroupOptions = {
    /**
     * Tên nhóm
     */
    name?: string;
    /**
     * Danh sách ID thành viên nhóm (trừ bản thân)
     */
    members: string[];
    /**
     * Ảnh nhóm (tùy chọn)
     */
    avatarSource?: AttachmentSource;
};

Examples

Tạo nhóm mới

Last updated