mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
Basic Chat and Message model implementation
This commit is contained in:
@@ -19,7 +19,7 @@ client.on('ready', () => {
|
||||
client.on('message', (msg) => {
|
||||
console.log('MESSAGE RECEIVED', msg);
|
||||
|
||||
if (!msg.id.fromMe && msg.body == 'ping') {
|
||||
if (msg.body == 'ping') {
|
||||
client.sendMessage(msg.from, 'pong');
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user