//core/com.kustomer.core.providers/KusChatProvider/sendMessageWithExternalAttachments
[androidJvm]
abstract suspend fun sendMessageWithExternalAttachments(attachments: List<KusExternalAttachment>, conversationId: String, body: String? = null, isFirstMessage: Boolean = false, initialAgentMessages: List<String>? = null, assistantId: String? = null): KusResult<KusChatMessage>
Registers host-owned attachments (see createExternalAttachments) and sends one message that owns them on an existing conversation. No message is sent when creation fails.
Note: This is a suspend function and should be called from Kotlin Coroutines
KusResult of type KusChatMessage
4.6.7
androidJvm
| attachments | Host-owned attachment metadata (absolute https urls) |
| conversationId | of the KusConversation to send the message to |
| body | Optional text. Defaults to empty so the timeline shows only the attachment card. |
| isFirstMessage | should be true if it is the first customer sent message in a conversation |
| initialAgentMessages | A list of messages that appear as if sent by an agent at the start of the conversation. Ignored if a Chat Assistant is set. |
| assistantId | optional assistantId for assistant replies. Defaults to KusChatSetting.assistantId. |