Message By MetaData
To send custom data along with a message, you can use “metadata” param provided to all kinds of messages such as Text, Image, audio, video & document.
Text Message#
To learn more on request and response about ' Text Message ' see the Text Message Section
Image Message#
To learn more on request and response about ' Image Message ' see the Image Message Section
Audio Message#
To learn more on request and response about ' Audio Message ' see the Audio Message Section
Video Message#
To learn more on request and response about ' Video Message ' see the Video Message Section
Document Message#
To learn more on request and response about ' Document Message ' see the Document Message Section
Meet Message#
Before you send the meet message, you need to create the meet link using the createMeetLink method. Once the meet link has been created successfully, you can send the Meet message.
caution
If Group call feature is unavailable for your plan, then it will throw 403 exception
Response Format#
You can send the meet message by using the sendMeetMessage method. You can share the title, link and schdueled date and time using this method.
caution
If Group call feature is unavailable for your plan, then it will throw 403 exception
| Param | Description | Type | Required |
|---|---|---|---|
| toJid | JID of the To User/GROUP | JID String | true |
| link | Meet Link which we need to share | String | true |
| scheduledDateTime | Scheduled Date and Time | Number (Timestamp) | true |
| title | Meet Title which we need to share | String | false |
| mentionedUsersIds | Array of Group Mentioned UsersIds | Array of String | false |
| topicId | Topic Id for the Message | String | false |
| metaData | MetaData for the Message | String | false |
Response Format:#
Send Reply Message#
To send a reply to the original message, we are using sendTextMessage by passing in the additional parameter original message-id.
Receive a Message#
To receive a metaData related message from another user you must implement the messageListener function. It’s a function that will be triggered whenever you receive a new message or related event in the chat.
note
To learn more on 'message listener callbacks,' see the Message Callback Event Listener Section