Whatsapp Api - 如何自动发送 url 中的预填充消息 [英] Whatsapp Api - How to automatically send pre-filled message which is in the url

查看:46
本文介绍了Whatsapp Api - 如何自动发送 url 中的预填充消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要使用自动出现在聊天文本字段中的预填充消息创建自己的链接,请使用 https://wa.me/whatsappphonenumber/?text=urlencodedtext where whatsappphonenumber是国际格式的完整电话号码,URL-encodedtext 是 URL 编码的预填充消息.

To create your own link with a pre-filled message that will automatically appear in the text field of a chat, use https://wa.me/whatsappphonenumber/?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and URL-encodedtext is the URL-encoded pre-filled message.

Example:https://wa.me/15551234567?text=I'm%20interested%20in%20your%20car%20for%20sale

https://faq.whatsapp.com/en/android/26000030/

<a href="https://api.whatsapp.com/send?phone=0123456789&text=I'm%20interested%20in%20your%20services" target="_blank">  Click to WhatsApp Chat</a>

url 中的消息显示在 whatsapp 消息框的输入字段中,有没有办法让消息自动发布或发送?背后的原因——网站上将有一个用于 whatsap 聊天的图标,任何点击该图标的人都会将其消息自动发送到网址中的网站联系电话.

The message in the url shows in the input field of whatsapp message box is there a way so that the message gets posted or sent automatically ? Reason behind it- There will be a icon on the website for whatsap chat anyone who clicks on that icon his message should be automatically send to the website's contact number which is in the url.

推荐答案

我以前看过这个,遗憾的是仍然没有办法通过客户端应用程序自动发送消息.从某种意义上说,它可以防止垃圾邮件和垃圾邮件.滥用.最接近的是预先填充内容,让用户将消息发送到所需的电话号码.

I was looking at this sometime back and sadly still there is no way to automatically send messages through the client app. It makes sense in a way to prevent spam & misuse. The closest thing is to pre-fill the content and let the user send the message to the desired phone number.

如果您是企业,您可以尝试 Whatsapp for Business API - https://www.whatsapp.com/business/api 来实现类似聊天机器人的功能,这可能适合您要构建的任何用例.无论如何,它现在只是一个请求功能,但您可以尝试相同的功能.

If you are a business you could try the Whatsapp for Business API - https://www.whatsapp.com/business/api to implement chatbot like features and that might fit whatever use case you are looking to build. Anyways it a request only feature for now but you can try the same.

或者,如果您想变得疯狂并尝试应用叠加层自动发送消息,但 Whatsapp 会阻止应用叠加层并且从不让用户继续使用该应用.

Or if you would want to get wild and try app overlay to auto send the message but Whatsapp prevents app overlay and never lets users proceed to use the app.

这篇关于Whatsapp Api - 如何自动发送 url 中的预填充消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆