fix(master): prevent detection

This commit is contained in:
Rajeh Taher
2024-06-12 15:08:30 +03:00
committed by GitHub
parent 6af6bffe31
commit e91f9e05c5

View File

@@ -171,7 +171,7 @@ export async function promiseTimeout<T>(ms: number | undefined, promise: (resolv
} }
// generate a random ID to attach to a message // 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) { export function bindWaitForEvent<T extends keyof BaileysEventMap>(ev: BaileysEventEmitter, event: T) {
return async(check: (u: BaileysEventMap[T]) => boolean | undefined, timeoutMs?: number) => { return async(check: (u: BaileysEventMap[T]) => boolean | undefined, timeoutMs?: number) => {