feat(feishu): add reaction support and group mention gating#59
Open
VanwaysAI wants to merge 1 commit into
Open
feat(feishu): add reaction support and group mention gating#59VanwaysAI wants to merge 1 commit into
VanwaysAI wants to merge 1 commit into
Conversation
- Add Typing reaction when processing user messages - Remove Typing reaction after processing completes - Add CrossMark reaction on processing failure - Subscribe to im.message.reaction.created_v1 and deleted_v1 events - Add group chat mention gating: only respond when bot is @mentioned - Fetch bot open_id on startup for accurate mention detection - Filter bot's own reactions to avoid feedback loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Feishu reaction support for message processing status and group mention gating.
Features
Processing Status Indicators
Group Chat Mention Gating
open_idvia Bot Info API for accurate mention detectionReaction Event Subscriptions
im.message.reaction.created_v1andim.message.reaction.deleted_v1Technical Details
New API Endpoints
GET /open-apis/bot/v3/info- Fetch bot info (open_id)POST /open-apis/im/v1/messages/{message_id}/reactions- Add reactionDELETE /open-apis/im/v1/messages/{message_id}/reactions/{reaction_id}- Remove reactionNew Methods
_fetchBotInfo()- Fetch bot open_id on startup_isMentioningBot()- Check if mentions include this bot_addReaction()/_removeReaction()- Manage reactions_onReactionEvent()- Handle incoming reaction eventsConstants
Testing
Breaking Changes: None
Dependencies: None