createConversation

open fun createConversation(    @NonNull recipients: Array<String>,     conversationType: Int,     @NonNull conversationName: String,     isAvailableOnlyRecipients: Boolean,     @Nullable completion: CreateConversationCallback)

Call this method to create a new conversation, The created conversation will be empty. The new conversation will be created based on the users, groups and the conversationType parameters.

Parameters

recipients

The list of international phone numbers and/or list of groups that you want to start a conversation with (example of users format: [group:1,group:2,1234567891,1234567892,1234567893])

conversationType

Conversation type

conversationName

Conversation name in case of conversationType is THREAD_TYPE_GROUP or THREAD_TYPE_ONE_TO_MANY type

isAvailableOnlyRecipients

If the messages will be sent only to the available recipients.

completion

This callback will be invoked to handle operation result :

  • Success : The conversation is successfully created.
  • Error : a local error occurred when trying to create a conversation