Browse SDKs · uni-app / uni-app x
SDKsuni-app

Create an emoji message

OpenIM uni-app / uni-app x SDK guide for Create an emoji message.

Copy
import { createFaceMessage } from '@/uni_modules/unix-openim-sdk'

const message = await createFaceMessage({ index: 1, data: 'smile' })

The Promise creates OpenIMMessageItem | null and does not send it. Sender and receiver must share the same sticker package/version mapping. Render an unknown-index placeholder instead of failing the message list.