移动网站“WhatsApp”按钮将消息发送到特定号码 [英] Mobile website "WhatsApp" button to send message to a specific number

查看:171
本文介绍了移动网站“WhatsApp”按钮将消息发送到特定号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以自定义移动网站,以允许用户在WhatsApp中向手动选择的联系人分享预先填写的消息。正如此处所述,它使用自定义URL方案完成。例如:

 < a href =whatsapp:// send?text = Hello%20World!>世界<!/ A> 

打电话给我们使用的特定号码:

 < a href =tel:0123456789>致电< / a> 

同样,我们可以发送WhatsApp消息给特定的号码(或至少打开聊天)用户手动选择电话号码,而不是预定义的参数/属性值之一? 解决方案

现在可以轻松完成!
您只需要使用以下格式:

 < a href =https://api.whatsapp。 COM /发送电话= whatsappphonenumber&安培;文本= urlencodedtext>< / A> 

通过使用这种格式,您可以轻松地将自定义消息发送到特定的号码。



有关详情,请参阅 https:// www .whatsapp.com / faq / en / general / 26000030


A mobile website can be customized to allow users to share a pre-filled message in WhatsApp to a manually chosen contact. As given here it is done using Custom URL Scheme. An example:

<a href="whatsapp://send?text=Hello%20World!">Hello, world!</a>

To call a particular number we use:

<a href="tel:0123456789">Call</a>

Similarly, can we send a WhatsApp message to a specific number (or at least open the chat) without user choosing the phone number manually rather it will be one of the predefined parameters/attribute values?

解决方案

This can be easily done now! You just need to use this format:

<a href="https://api.whatsapp.com/send?phone=whatsappphonenumber&text=urlencodedtext"></a>

By using this format, you can easily send a custom message to a specific number.

For more information, see https://www.whatsapp.com/faq/en/general/26000030

这篇关于移动网站“WhatsApp”按钮将消息发送到特定号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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