conversations
feishu.events.conversations
¶
is_group_message
¶
Identify explicitly typed group messages without guessing from the chat ID.
Legacy events without chat_type retain the existing conversation and
interruption behavior. Feishu uses p2p for direct chats; other nonempty
types identify group conversations.
源代码位于: feishu/events/conversations.py
session_id_for_message
¶
Derive the same history and durable execution lane from a message event.
Direct chats share one lane, including replies. Each group root message
starts a lane and its replies share that root’s lane. Events without
chat_type keep the legacy chat/root routing. A malformed group message
needs at least a root, message, or event ID so it cannot join a shared lane.