Single chat
note
To generate your own or others JID using the unique username got in registration response, use the const userJid = SDK.getJid(USER_ID) method.
#
Get Chat MessagesTo get the chat history of the selected user, send a request to the server as described below.
Example
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
toJid | JID of the To User/Group | JID String | true |
#
Response Format#
Download MediaThis method is used to get the media file url when we download the media.
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
fileToken | File Url | String | true |