如何在聊天客户端中发送媒体消息?我正在使用 JS SDK 并基于教程https://www.twilio.com/docs/api/chat/guides/media-support,但出现错误。我正在使用这样的sendMessage
方法:
channel.sendMessage({ contentType: 'image/png', media: 'base64 string image' });
错误信息:
{
commandId: "e289ff36-4d9d-4fdb-8e36-46078c7228ef"
response {
responseTime: "2017-10-02T00:20:26.675Z"
status: 50107
statusText:"User unauthorized for command"
}
}