mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix(master): prevent detection
This commit is contained in:
@@ -171,7 +171,7 @@ export async function promiseTimeout<T>(ms: number | undefined, promise: (resolv
|
||||
}
|
||||
|
||||
// generate a random ID to attach to a message
|
||||
export const generateMessageID = () => 'BAE5' + randomBytes(6).toString('hex').toUpperCase()
|
||||
export const generateMessageID = () => '3EB0' + randomBytes(18).toString('hex').toUpperCase()
|
||||
|
||||
export function bindWaitForEvent<T extends keyof BaileysEventMap>(ev: BaileysEventEmitter, event: T) {
|
||||
return async(check: (u: BaileysEventMap[T]) => boolean | undefined, timeoutMs?: number) => {
|
||||
@@ -412,4 +412,4 @@ export function bytesToCrockford(buffer: Buffer): string {
|
||||
}
|
||||
|
||||
return crockford.join('')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user