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
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.
Optional
quoted
string
Message ID of the message to be quoted
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.
Read more here: Mentioning All Participants in a WhatsApp Group
view_once
boolean
This message can only be viewed once
Choose a programming language you are comfortable with:
Whatsapp API send message Node JS
Whatsapp API send message Python
Whatsapp API send message Java
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. 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.
Send Video
Send GIF
Send Contact
Send Contact List
Send Location
Send Sticker
Last updated
Was this helpful?