This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"ddd": "11", "estado": "São Paulo"}, | |
{"ddd": "12", "estado": "São Paulo"}, | |
{"ddd": "13", "estado": "São Paulo"}, | |
{"ddd": "14", "estado": "São Paulo"}, | |
{"ddd": "15", "estado": "São Paulo"}, | |
{"ddd": "16", "estado": "São Paulo"}, | |
{"ddd": "17", "estado": "São Paulo"}, | |
{"ddd": "18", "estado": "São Paulo"}, | |
{"ddd": "19", "estado": "São Paulo"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sock.waitForMessage = async (from = false, timeout, max = false) => { | |
return new Promise((resolve) => { | |
var msgs = [] | |
let x = setTimeout(() => { | |
if (msgs.length < 1) { | |
resolve('idle') | |
} else { | |
resolve(msgs) | |
} | |
}, timeout); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const { Boom } = require('@hapi/boom') | |
const { | |
default: makeWASocket, | |
AnyMessageContent, | |
delay, | |
DisconnectReason, | |
fetchLatestBaileysVersion, | |
useMultiFileAuthState | |
} = require('@adiwajshing/baileys') |