Send text message

The method is intended for sending a text message to chats

In this method you will be able to send simple texts, you can add to them by using the formatting of text and emojis.

To send a text message, you need to make a request to:

POST https://gate.whapi.cloud/messages/text

Attributes

Required

AttributesTypeDescription

to

string

Chat ID: The recipient's phone number (or group or channel ID) in international format without a plus. For example 14046542567. It is IMPORTANT to send only numbers without formatting or masking

body

string

Text to be sent. Emoji ๐Ÿ˜ƒ characters are supported. It is required to use UTF-8 encoding without BOM. May include an https link.

Optional

AttributesTypeDescription

quoted

string

Message ID of the message to be quoted

ephemeral

integer

Time in seconds for the message to be deleted. Requires the "Disappearing Messages" setting in chat to be enabled.

edit

string

Message ID of the message to be edited

typing_time

number

Time in seconds to simulate typing

no_link_preview

boolean

Set "true" if necessary to send the link without preview

mentions

array of strings

Responsible for mentioning members in the group. Specify numbers to mention here. Be sure to insert this mention in the Body text of the message you are sending. It should contain the @ symbol along with the number.

view_once

boolean

This message can only be viewed once


Choose a programming language you are comfortable with:

Whatsapp API send message PHP

Whatsapp API send message Node JS

Whatsapp API send message Python

Whatsapp API send message Java

Whatsapp API send message ะก#

If you have any inquiries, or if you'd like to share your experiences, please don't hesitate to get in touch: care@whapi.cloud

Send Media Message

Additional endpoint for easy send media-file as message. Use request body as file and inpath parameters for send parameters. Media message can be one of the following types:

Send Image

Send Document

Send Audio

Send Voice

You can Send a ppt audio recording to the phone number or group, But WhatsApp is sensitive to this extension, you need to be in OGG format and the codecs should be the opus, For more information, you can check out this article.

Send Video

Send GIF

Send Contact

Send Contact List

Send Location

Send Sticker

Last updated