public class NormalizedMessage extends Object
channel.on("message", ...).
The normalizer flattens Feishu message shapes into text content, resource descriptors, mention metadata and reply/thread context so Agent handlers do not need to parse raw message JSON for common cases.
| 构造器和说明 |
|---|
NormalizedMessage(String messageId,
String chatId,
String chatType,
String senderId,
String senderName,
String content,
String rawContentType,
List<ResourceDescriptor> resources,
List<MentionInfo> mentions,
boolean mentionAll,
boolean mentionedBot,
String rootId,
String threadId,
String replyToMessageId,
long createTime,
Object raw) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getChatId()
Chat id that can be passed directly to
channel.send(...). |
String |
getChatType()
Feishu chat type, for example
p2p or group. |
String |
getContent()
Text content after message-type conversion and bot-mention stripping.
|
long |
getCreateTime()
Feishu create_time in milliseconds when present.
|
List<MentionInfo> |
getMentions()
Parsed user mentions in message order.
|
String |
getMessageId()
Current message id.
|
Object |
getRaw()
Raw event body when
includeRawEvent(true) is enabled. |
String |
getRawContentType()
Original Feishu message type such as
text, post, image. |
String |
getReplyToMessageId()
Parent message id for direct replies.
|
List<ResourceDescriptor> |
getResources()
Image, file, audio or video resources referenced by the message.
|
String |
getRootId()
Root message id for threaded replies when Feishu provides it.
|
String |
getSenderId()
Sender open_id when available.
|
String |
getSenderName()
Sender display name when provided by the event.
|
String |
getThreadId()
Thread id when the message belongs to a topic/thread.
|
boolean |
isMentionAll()
Whether the message mentions everyone.
|
boolean |
isMentionedBot()
Whether the message mentions the connected bot.
|
public NormalizedMessage(String messageId, String chatId, String chatType, String senderId, String senderName, String content, String rawContentType, List<ResourceDescriptor> resources, List<MentionInfo> mentions, boolean mentionAll, boolean mentionedBot, String rootId, String threadId, String replyToMessageId, long createTime, Object raw)
public String getMessageId()
public String getChatId()
channel.send(...).public String getChatType()
p2p or group.public String getSenderId()
public String getSenderName()
public String getContent()
public String getRawContentType()
text, post, image.public List<ResourceDescriptor> getResources()
public List<MentionInfo> getMentions()
public boolean isMentionAll()
public boolean isMentionedBot()
public String getRootId()
public String getThreadId()
public String getReplyToMessageId()
public long getCreateTime()
public Object getRaw()
includeRawEvent(true) is enabled.Copyright © 2026. All rights reserved.