feat: add bulk "process" capability to BaileysBufferableEventEmitter

This commit is contained in:
Adhiraj Singh
2022-07-04 11:34:41 +05:30
parent de95694266
commit 5cc58d4aed
7 changed files with 190 additions and 128 deletions

View File

@@ -155,6 +155,8 @@ export const makeGroupsSocket = (config: SocketConfig) => {
admin: key.remoteJid!
}
}])
const started = ev.buffer()
// if we have the full message key
// update the invite message to be expired
if(key.id) {
@@ -193,6 +195,10 @@ export const makeGroupsSocket = (config: SocketConfig) => {
'notify'
)
if(started) {
await ev.flush()
}
return results.attrs.from
},
groupGetInviteInfo: async(code: string) => {