6.7.7 • Published 6 months ago
@joanimi/baileys-ds6 v6.7.7
Alert This Library doesn't work so well now so use @joanimi/baileys Library instead
AIMsg Added ✅️
A reminder
The start of each message ID was changed to NJX-. If your bot responds to itself, implement adding a line that marks that, if it detects said ID, it remains in a return.
/* 
Regularly used method 
*/
let m.isBot = m.id.startsWith('BAE5') && m.id.length === 16 || m.id.startsWith('3EB0') && m.id.length === 12 || m.id.startsWith('3EB0') && (m.id.length === 20 || m.id.length === 22) || m.id.startsWith('B24E') && m.id.length === 20;
/* 
Method implementing the handling of the "NJX-" prefix in the IDs 
*/
let m.isBot = m.id.startsWith('NJX-') || m.id.startsWith('BAE5') && m.id.length === 16 || m.id.startsWith('3EB0') && m.id.length === 12 || m.id.startsWith('3EB0') && (m.id.length === 20 || m.id.length === 22) || m.id.startsWith('B24E') && m.id.length === 20;
if (m.isBot) return;