Schedule a meet

Send Meet message#

A meet message typically refers to a message or communication related to scheduling or planning a meeting. These messages can include information about the Scheduled date,time and meet link.

Share the created meet link from previous step 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

await SDK.sendMeetMessage({
toJid: "",
link: "",
scheduledDateTime: 0,
title: "",
mentionedUsersIds: [],
topicId: "",
metaData: {}
});

Request Param#

ParamDescriptionTypeRequired
toJidJID of the To User/GROUPJID Stringtrue
linkMeet Link which we need to shareStringtrue
scheduledDateTimeScheduled Date and TimeNumber (Timestamp)true
titleMeet Title which we need to shareStringfalse
mentionedUsersIdsArray of Group Mentioned UsersIdsArray of Stringfalse
topicIdTopic Id for the MessageStringfalse
metaDataMetaData for the MessageStringfalse

Response Format:#

statusCode: 200, // Number - status code
message: "", // String - Success/Error Message
data:
{
chatType: "", // String - Chat Type - "chat"
createdAt: "", // String - Message Created Time
deleteStatus: "", // Number - Delete Status
favouriteBy: "", // String - Favourited By - User
favouriteStatus: "", //Number - Favourite status
fromUserId: "", // String - From User Id
fromUserJid: "", // String - From User Jid
metaData: {}, //Object - Meta data for the message
msgBody: {
    message_type: "meet", // String - Message Type
      nickName: "", // String - nick name
      mentionedUsersIds: [], // Array of mentioned users
      meet: {
      title: "", // String - Title
        scheduledDateTime: 1695202750020, // Number - Timestamp - Milliseconds
        link: "ehl-niyc-wcc" // String - Link
      }
    }
msgId: "", // String - Unique Message Id
msgType: "", // String - Message Type
publisherId: "", // String - user Id
timestamp: 1681185232000, // Number - TimeStamp - Milliseconds
toUserId: "", // String - toUser Jid
toUserJid: "", // String - toUser Jid
topicId: "", //String - Topic id for the message
},

Receive Meet message#

To receive the meet 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 one-to-one or group chat. Further to initialize the SDK, you need to add the below callback method during the process.

function messageListener(response) {
console.log("Message Listener", response);
}
note

To learn more on 'message listener callbacks,' see the Message Callback Event Listener Section