redai-automation-web-sdk
Version:
TypeScript SDK for RedAI Automation Web API - Zalo Personal automation, messaging, advanced sticker search, and bulk operations. 100% compatible with automation-web backend. v1.8.0: Added SessionProxyService for managing proxy assignments to sessions with
24 lines • 632 B
JavaScript
;
/**
* Undo Event Types
* 100% khớp với zalo-personal-sdk/src/models/Undo.ts
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Undo = void 0;
/**
* Undo Class
*/
class Undo {
constructor(uid, data, isGroup) {
this.data = data;
this.threadId = isGroup || data.uidFrom === "0" ? data.idTo : data.uidFrom;
this.isSelf = data.uidFrom === "0";
this.isGroup = isGroup;
if (data.idTo === "0")
data.idTo = uid;
if (data.uidFrom === "0")
data.uidFrom = uid;
}
}
exports.Undo = Undo;
//# sourceMappingURL=undo.js.map