UNPKG

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 664 B
"use strict"; /** * Reaction Event Types * 100% khớp với zalo-personal-sdk/src/models/Reaction.ts */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Reaction = void 0; /** * Reaction Class */ class Reaction { 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.Reaction = Reaction; //# sourceMappingURL=reaction.js.map