From aab59f3d68ff53395cbc827278842343f208fe2e Mon Sep 17 00:00:00 2001 From: JAYBORICHA Date: Sun, 26 Nov 2023 15:24:26 +0530 Subject: [PATCH] Stopped writing images --- src/wa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wa.ts b/src/wa.ts index d58baf9..9ac1cfd 100644 --- a/src/wa.ts +++ b/src/wa.ts @@ -230,7 +230,7 @@ export async function createSession(options:createSessionOptions) { messageData.timestamp = (msg.messageTimestamp)?.toString()!; console.log(messageData); // @ts-ignore - await writeFile('./demo.jpeg', Buffer.from(buffer, 'binary').toString('base64')).then(()=>{console.log("image-generated")}); + // await writeFile('./demo.jpeg', Buffer.from(buffer, 'binary').toString('base64')).then(()=>{console.log("image-generated")}); }else if(messageType == 'conversation' || messageType == 'extendedTextMessage'){ if(!msg.key.fromMe){ messageData.phoneNumber = msg.key.remoteJid!.slice(2,12);