createAutoReply

Thêm cấu hình tự động trả lời (dành cho zBusiness)

api.createAutoReply(memberId, groupId)

Parameters

  • payload CreateAutoReplyPayload

Return

Promise<CreateAutoReplyResponse>

Types

export type CreateAutoReplyPayload = {
    content: string;
    isEnable: boolean;
    startTime: number;
    endTime: number;
    scope: AutoReplyScope;
    uids?: string | string[];
};

export type CreateAutoReplyResponse = {
    item: AutoReplyItem;
    version: number;
};

Examples

Cấu hình tự động trả lời trong khoảng từ 18 giờ đến 7 giờ 30 hôm sau

Lưu ý: cấu hình trên được áp dụng cho mọi ngày, không chỉ riêng ngày được truyền vào. Tham số thời gian chỉ nhằm giúp Zalo xác định mốc thời gian tham chiếu.

Last updated