miniapp / com.rakuten.tech.mobile.miniapp.js.chat / ChatBridgeDispatcher / sendMessageToContactId
sendMessageToContactId
abstract fun sendMessageToContactId(contactId:
String
, message:
MessageToContact
, onSuccess: (contactId:
String
?) ->
Unit
, onError: (message:
String
) ->
Unit
):
Unit
Triggered when Mini App wants to send a message to a specific contact. Should send a message to the specified contactId without any prompt to the User. Should invoke onSuccess after message was successfully sent. Should invoke onError when there was an error.