Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Location ? Why Not #4

Open
kelasweekend opened this issue May 3, 2023 · 1 comment
Open

Send Location ? Why Not #4

kelasweekend opened this issue May 3, 2023 · 1 comment

Comments

@kelasweekend
Copy link

Hey this is not about the issue on this repository just sharing the information, I see and understand the workflow of this package, I understand that this is a combination of the previous package, namely bailyes whatsapp whose repository is currently closed, but it can still run except button templates and list templates, I use this repository for my project and I costum with the concept of using bailyes, I read the previous issue can I send a button, location or so on ? I tried the technique below. please try to make sure again, I hope there is a latest update for something like this

=================================================
const id = '[email protected]'
const session = whatsapp.getSession(sessionId)
session.sendMessage( id, { location: { degreesLatitude: 24.121231, degreesLongitude: 55.1121221 } } )

=================================================

Best Regards
Ojan Alpha

@fpiekarski
Copy link

to send location, you need to change this file .\node_modules\wa-multi-session\dist\Messaging\index.js
index.js.txt
remember to remove the .txt extension before, and use method like this:
const h = await whatsapp.sendTextMessage({sessionId: "new",to: id, location: { degreesLatitude: 24.121231, degreesLongitude: 55.1121221 } } )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants