@vreden/meta
Version:
Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.
38 lines (34 loc) • 643 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true })
const WABinary_1 = require("../../WABinary")
class USyncLIDProtocol {
constructor() {
this.name = 'lid'
}
getQueryElement() {
return {
tag: 'lid',
attrs: {}
}
}
getUserElement(user) {
if (user.lid) {
return {
tag: 'lid',
attrs: { jid: user.lid }
}
}
else {
return null
}
}
parser(node) {
if (node.tag === 'lid') {
return node.attrs.val
}
return null
}
}
module.exports = {
USyncLIDProtocol
}