Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
elrebelde21 authored Jul 9, 2024
1 parent 29e8624 commit cc7f89a
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions lib/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -1482,20 +1482,16 @@ export function serialize() {

},
delete: {
/**
/**
* Delete quoted message
*/
value() {
return self.conn?.sendMessage(this.chat, {delete: this.vM.key});
},
enumerable: true,

},
});
},
enumerable: true,
},
//react
value() {
return self.conn?.sendMessage(this.chat, { delete: this.vM.key })
},
enumerable: true,

},
//react
react: {
value(text) {
return self.conn?.sendMessage(this.chat, {
Expand All @@ -1512,11 +1508,11 @@ export function serialize() {
},
enumerable: true
},
_text: {
value: null,
writable: true,
},
text: {
_text: {
value: null,
writable: true,
},
text: {
get() {
const msg = this.msg;
const text = (typeof msg === 'string' ? msg : msg?.text) || msg?.caption || msg?.contentText || '';
Expand Down Expand Up @@ -1604,6 +1600,21 @@ export function serialize() {
},
});
}
//react
react: {
value(text) {
return this.conn?.sendMessage(this.chat, {
react: {
text,
key: this.key
}
})
},
enumerable: true
}
//
})
}

export function logic(check, inp, out) {
if (inp.length !== out.length) throw new Error('Input and Output must have same length');
Expand Down

0 comments on commit cc7f89a

Please sign in to comment.