sendMessageToConversation

abstract fun sendMessageToConversation(conversation: IRainbowConversation?, message: String)

Send a message to a given conversation.

Parameters

conversation

IRainbowConversation The conversation

message

String The message to send


abstract fun sendMessageToConversation(conversation: IRainbowConversation?, fileDescriptor: RainbowFileDescriptor?, message: String)

Send a message to a given conversation with a file.

Parameters

conversation

IRainbowConversation The conversation

fileDescriptor

RainbowFileDescriptor The file to send as a RainbowFileDescriptor object

message

String The message to send


abstract fun sendMessageToConversation(conversation: IRainbowConversation?, imMessage: IMMessage?)

Send a message to a given conversation with a file.

Parameters

conversation

IRainbowConversation The conversation

imMessage

ImMessage The ImMessage to send ImMessage can be filled with : ReplyMessage ReplaceMessage DeleteMessage (ReplaceMessage with empty content) Location


abstract fun sendMessageToConversation(conversation: IRainbowConversation?, message: String?, additionalMessageType: String?, additionalMessageContent: String?)

Send a message to a given conversation with a single additional content

Parameters

conversation

@object:IRainboConversation The Conversation

message

String The message to send

additionalMessageType

String The type of additional content

additionalMessageContent

String The additional content


abstract fun sendMessageToConversation(conversation: IRainbowConversation?, message: String?, additionalContents: List<AdditionalContent>)

Send a message to a given conversation with a list of additional contents

Parameters

conversation

@object:IRainboConversation The Conversation

message

String The message to send

additionalContents

@object:List The list of additional contents AdditionalContent(String content, String type)