feat: add message operations (recall, edit, react, pin, mark-read, thread reply)#15
Open
echowxsy wants to merge 1 commit into
Open
feat: add message operations (recall, edit, react, pin, mark-read, thread reply)#15echowxsy wants to merge 1 commit into
echowxsy wants to merge 1 commit into
Conversation
…read reply) - Add protobuf definitions for delete, edit, reaction, pin, and mark-read messages - Add generic header builder to reduce code duplication - Add ProtoBuilder methods for all new operations with raw protobuf encoding - Add LarkClient methods: recall_message, edit_message, add/remove_reaction, pin/unpin_message, mark_read, send_msg_in_thread - Extract message_id from incoming WebSocket messages - Add emoji reaction alias mapping (Chinese/English/emoji → Feishu type) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
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
Backport message operations from the Go implementation (larkmsg) to LarkAgentX:
Changes
static/proto.proto— Add 11 new protobuf message definitions (DeleteMessagesRequest, EditMessageRequest, CreateReactionRequest, etc.)static/proto_pb2.py— Regenerated from updated proto.protobuilder/header.py— Add genericbuild_proto_header(cmd, cmd_version)to reduce code duplication (updated UA headers matching web version 7.63.0)builder/proto.py— Add 8 builder/decoder methods + raw protobuf encoding helpers; extractmessageIdfrom incoming WebSocket messagesapp/api/lark_client.py— Add 9 new API methods, command constants, emoji alias mapping, and response checkingTest plan
recall_message()successfully deletes a messageedit_message()updates message contentadd_reaction()/remove_reaction()with emoji aliasespin_message()/unpin_message()operationsmark_read()marks chat as readsend_msg_in_thread()replies in thread contextmessageIdis correctly extracted in WebSocket message processing🤖 Generated with Claude Code