Mention
To Mention user along with a message in a group, you can use mentionedUsersIds
param provided to all kinds of messages such as Text, Image, video.
#
Text messageTo send your text message, you need to pass the MessageParams.text
object as an argument to the parameter in the sendMessage()
method.
#
Image messageTo send image as a message call the below method. Calling the below method will upload the image file to the server provided during sdk initialization then send the message
To send your image message, you need to pass the MessageParams.image
object as an argument to the parameter in the sendMessage()
method.
#
Video messageVideo sharing is very useful communication between users. sdk provides methods to send the video message to the end users. once the user has sent message via sdk, it will give callback with status. if you want send the video message for a user, you can utilise the below method.
To send your video message, you need to pass the MessageParams.video
object as an argument to the parameter in the sendMessage()
method.
#
Send Reply messageTo send reply message to the original message, you need to pass the additional parameter original message-id in replyMessageId
.MessageParams.text
object as an argument to the parameter in the sendMessage()
method.
#
Receive MessageTo receive a mentioned related message from another user in a group, you must implement the messageListeners. Itβs a listener that will be triggered whenever you receive a new message in the chat.
Note : You can listen to incoming messages by using the onMessageReceived listener.