Send text message
The method is intended for sending a text message to chats
Last updated
The method is intended for sending a text message to chats
Last updated
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
to
string
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.
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
view_once
boolean
This message can only be viewed once
Whatsapp API send message Node JS
Whatsapp API send message Python
Whatsapp API send message Java
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
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:
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. Our API has an automatic video and audio converter for the necessary codecs compatible with WhatsApp. For more information, you can check out this article.
: The recipient's phone number (or or ID) in international format without a plus. For example 14046542567. It is IMPORTANT to send only numbers without formatting or masking
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.
Read more here: