whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Cannot send Location

Open jaovitubr opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

When sending a location, it normally appears in the sender's browser chat as if it were sent, but the other person does not receive anything!

Expected behavior

As a user I hope to send location and the other person will receive that location on the other side on their device

Steps to Reproduce the Bug or Issue

  1. Run script and send Location
  2. See the Sender chat
  3. See the Destinatary chat

Relevant Code

const { Client, LocalAuth, Location } = require('whatsapp-web.js');

const client = new Client({
    authStrategy: new LocalAuth(),
    puppeteer: { 
        headless: false
    }
});

client.on('qr', (qr) => {
    console.log('QR RECEIVED', qr);
});

client.on('ready', async () => {
    console.log('READY');
    client.sendMessage("[email protected]", new Location(37.422, -122.084, 'Googleplex\nGoogle Headquarters'));
});

client.initialize();

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows Phone OS: Android whatsapp-web.js version 1.19.5 WhatsApp Web version 2.2320.10 Node.js Version 18.12.1

Additional context

No response

jaovitubr avatar May 16 '23 19:05 jaovitubr