发送自定义消息需要把整个MessagePayload对象encode吗
String sender = "1636632088780013569";
String s = "自定义消息";
Conversation conversation = new Conversation();
conversation.setTarget("1630092709974609921");
conversation.setType(0);
conversation.setLine(0);
MessagePayload messagePayload = new MessagePayload();
messagePayload.setType(1001);
messagePayload.setContent(s);
messagePayload.setSearchableContent(s);
messagePayload.setPushContent("");
messagePayload.setPushData("");
messagePayload.setBase64edData(Base64.getEncoder().encodeToString(s.getBytes(StandardCharsets.UTF_8)));
messagePayload.setMentionedType(0);
List toUsers = new ArrayList<>();
toUsers.add("1630092709974609921");
IMResult sendMessageResultIMResult = MessageAdmin.sendMessage(sender, conversation, messagePayload, toUsers);
我这样定义有什么问题吗?