UNPKG

neroxbailx

Version:

baileys whatsapp-api

31 lines 570 B
"use strict" Object.defineProperty(exports, "__esModule", { value: true }) const WABinary_1 = require("../../WABinary") class USyncDisappearingModeProtocol { constructor() { this.name = 'disappearing_mode' } getQueryElement() { return { tag: 'disappearing_mode', attrs: {}, } } getUserElement() { return null } parser(node) { if (node.tag === 'status') { WABinary_1.assertNodeErrorFree(node) const duration = +node?.attrs?.duration const setAt = new Date(+(node?.attrs?.t || 0) * 1000) return { duration, setAt, } } } } module.exports = { USyncDisappearingModeProtocol }