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 messageTo send your text message, you need to pass the TextMessage
object as an argument to the parameter in the sendTextMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | TextMessage | Object to hold the parameters of the text message |
CALLBACK | SendMessageCallback | callback to observe the action status |
#
Image messageTo send your image message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the image message |
CALLBACK | SendMessageCallback | callback to observe the action status |
Note : In ChatManager
.setMediaFolderName
should be defined to set your own local path to store app media files.
caution
If Image attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Image files.
#
Image message with urlTo send your image message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the image message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Image attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Image files.
#
Video messageTo send your video message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the video message |
CALLBACK | SendMessageCallback | callback to observe the action status |
Note : In ChatManager
.setMediaFolderName
should be defined to set your own local path to store app media files.
caution
If Video attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Video files.
#
Video message with urlTo send your video message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the video message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Video attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Video files.
#
Audio messageTo send your audio message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the audio message |
CALLBACK | SendMessageCallback | callback to observe the action status |
Note : In ChatManager
.setMediaFolderName
should be defined to set your own local path to store app media files.
caution
If Audio attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Audio files.
#
Audio message with urlTo send your audio message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the audio message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Audio attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Audio files.
#
Document messageTo send your document message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the document message |
CALLBACK | SendMessageCallback | callback to observe the action status |
Note : In ChatManager
.setMediaFolderName
should be defined to set your own local path to store app media files.
caution
If Document attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Document files.
#
Document message with urlTo send your document message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the document message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Document attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Document files.
#
Location messageTo send your location message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the location message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Location attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Location message.
#
Contact messageTo send your contact message, you need to pass the FileMessage
object as an argument to the parameter in the sendMediaFileMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | FileMessage | Object to hold the parameters of the contact message |
CALLBACK | SendMessageCallback | callback to observe the action status |
caution
If Contact attachment feature unavailable for your plan then it will throw 403 exception.
caution
FlyMessenger.sendFileMessage()
method was deprecated and will be removed in the future release. migrate to FlyMessenger.sendMediaFileMessage()
method to send Contact message.
#
Send Reply messageTo send reply message to the original message, you need to pass the additional parameter original message-id in replyMessageId
.TextMessage
object as an argument to the parameter in the sendTextMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | TextMessage | Object to hold the parameters of the text message |
CALLBACK | SendMessageCallback | callback to observe the action status |
#
Meet messageA 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.
#
Create Meet linkBefore 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
- Java
- Kotlin
To send your Meet message, you need to pass the MeetMessage
object as an argument to the parameter in the sendMeetMessage()
method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | MeetMessage | Object to hold the parameters of the meet message |
CALLBACK | SendMessageCallback | callback to observe the action status |
#
Receive MessageTo 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.
- java
- Kotlin
info
To learn more on message listener callbacks, see the MessageEventsCallbacks
.