Skip to content

Commit

Permalink
Stopped writing images
Browse files Browse the repository at this point in the history
  • Loading branch information
JAYBORICHA07 committed Nov 26, 2023
1 parent b21e0a7 commit aab59f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aab59f3

Please sign in to comment.