如何使用WhatsApp Web JS发送位置

发布于 2025-01-26 09:15:30 字数 282 浏览 1 评论 0原文

您能帮我发送WhatsApp Web JS的地方的位置吗 就像我想向我发送给我的位置发送消息的用户一样,然后将发送伦敦或任何其他地方的位置。 谢谢 这是WhatsApp Web JS文档 https://github.com/pedroslopez/pedroslopez/pedroslopez/whatsapp-web.js

can you help me to send the location of a place with Whatsapp web js
Like I want to send a user who messages me location then the location would be sent of London or any other place.
ThankYou
Here are the Whatsapp web js docs https://github.com/pedroslopez/whatsapp-web.js

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚风撩人 2025-02-02 09:15:30

您只需要创建一个位置并将其发送为消息。

const location = new Location(latitude, longitude, description of location);
client.sendMessage(user, location);

You just need to create a location and send as message.

const location = new Location(latitude, longitude, description of location);
client.sendMessage(user, location);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文