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

34 lines 917 B
"use strict"; /** * Seen Message Event Types * 100% khớp với zalo-personal-sdk/src/models/SeenMessage.ts */ Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupSeenMessage = exports.UserSeenMessage = void 0; const enums_1 = require("./enums"); /** * User Seen Message Class */ class UserSeenMessage { constructor(data) { this.type = enums_1.ThreadType.USER; this.isSelf = false; this.data = data; this.threadId = data.idTo; this.isSelf = false; } } exports.UserSeenMessage = UserSeenMessage; /** * Group Seen Message Class */ class GroupSeenMessage { constructor(uid, data) { this.type = enums_1.ThreadType.GROUP; this.data = data; this.threadId = data.groupId; this.isSelf = data.seenUids.includes(uid); } } exports.GroupSeenMessage = GroupSeenMessage; //# sourceMappingURL=seen-message.js.map