[go: up one dir, main page]

Skip to content

How to use the click to chat feature?#

In WhatsApp, you can directly write to a person who is not saved in your contact list using the click to chat feature. To do this, you need to know the phone number of the person you are talking to. And the person you are talking to must have a valid WhatsApp account.

To communicate with such a person using the click to chat feature, you need to create a link. By clicking on the generated link, the chat with the interlocutor, whose number is specified in the link, will open automatically. Click to chat works on the phone and in WhatsApp Web.

To form a link from chats, you should use a certain https request template:
https://wa.me/<number>

In <number> – you should add the phone number in international format without zeros, brackets, pluses and other symbols. Just numbers: https://wa.me/7XXXXXXXXXX.

Note

this link can be embedded in images on the site.

  • HTML for embedding SVG images:

    <a aria-label="Chat on WhatsApp" href="https://wa.me/1XXXXXXXXXX"><img alt="Chat on WhatsApp" src="<! — Add here the path to the .svg image —>" />
    <a />
    

  • HTML for embedding PNG images:

    <a aria-label="Chat on WhatsApp" href="https://wa.me/1XXXXXXXXXX"><img alt="Chat on WhatsApp" src="<! — Add here the path to the .png image —>" />
    <a />
    

Automatic message#

To form a link with automatic sending of a message to the chat room, you should also use the https request template with encoding https://wa.me/?text=urlencodedtext:

https://wa.me/7XXXXXXXXXX?text=Good%20afternoon!%20Is%20your%20ad%20for%20the%20apartment%20still%20up%20to%20date?

If you click on the link, a list of contacts to whom you can send a message will appear.