mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
add another location example
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.body == '!location') {
|
||||
msg.reply(new Location(37.422, -122.084, 'Googleplex\nGoogle Headquarters'));
|
||||
} else if(msg.location) {
|
||||
msg.reply(msg.location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user