Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza948 committed Dec 4, 2024
0 parents commit f6e547b
Show file tree
Hide file tree
Showing 5 changed files with 2,175 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
.wweb*
20 changes: 20 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Client } from 'whatsapp-web.js'
//@ts-ignore
const client = new Client();

client.on('qr',async (qr) => {
// Generate and scan this code with your phone
console.log(await client.getWWebVersion())
console.log('QR RECEIVED', qr);
});

client.on('ready', () => {
console.log('Client is ready!');
});

client.on('message', (msg) => {
client.sendMessage(msg.from,"hey")

});

client.initialize();
Loading

0 comments on commit f6e547b

Please sign in to comment.