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
Attributes | Type | Description |
---|---|---|
| string | |
| 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
Attributes | Type | Description |
---|---|---|
| string | Message ID of the message to be quoted |
| integer | Time in seconds for the message to be deleted. Requires the "Disappearing Messages" setting in chat to be enabled. |
| string | Message ID of the message to be edited |
| number | Time in seconds to simulate typing |
| boolean | Set "true" if necessary to send the link without preview |
| array of strings | Responsible for mentioning members in the group.
Specify numbers to mention here.
Be sure to insert this mention in the |
| 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
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. 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