@warriorteam/zalo-personal
Version:
Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support, auto-reply, product catalog, and business features
29 lines (28 loc) • 840 B
TypeScript
import type { AttachmentSource } from "../models/index.js";
export type CreateGroupResponse = {
groupType: number;
sucessMembers: string[];
groupId: string;
errorMembers: string[];
error_data: Record<string, unknown>;
};
export type CreateGroupOptions = {
/**
* Group name
*/
name?: string;
/**
* List of member IDs to add to the group
*/
members: string[];
/**
* Avatar source, can be a file path or an Attachment object
*/
avatarSource?: AttachmentSource;
/**
* Path to the avatar image file
* @deprecated Use `avatarSource` instead
*/
avatarPath?: string;
};
export declare const createGroupFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: CreateGroupOptions) => Promise<CreateGroupResponse>;