mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +00:00
feat: Send and receive location
This commit is contained in:
@@ -123,6 +123,8 @@ client.on('message', async msg => {
|
||||
client.sendMessage(msg.from, attachmentData, {caption: 'Here\'s your requested media.'});
|
||||
}
|
||||
|
||||
} else if(msg.location) {
|
||||
msg.reply(msg.location);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user