fix: add filereader for dingtalk,lark (#2122)

* fix: add filereader for dingtalk

* feat: add lark
This commit is contained in:
Guanchao Wang
2026-04-10 16:10:13 +08:00
committed by GitHub
parent bec61427a0
commit e06fac2bb7
4 changed files with 152 additions and 10 deletions
@@ -47,6 +47,22 @@ class DingTalkEvent(dict):
def conversation(self):
return self.get('conversation_type', '')
@property
def quoted_message(self) -> Optional[Dict[str, Any]]:
"""Get the quoted/replied message info if this is a reply message.
Returns:
A dict containing:
- message_id: The original message ID
- msg_type: The message type (text, file, picture, audio, etc.)
- content: The text content (if any)
- file_url: The file download URL (if file type)
- file_name: The file name (if file type)
- picture: The picture base64 (if picture type)
- audio: The audio base64 (if audio type)
"""
return self.get('QuotedMessage')
def __getattr__(self, key: str) -> Optional[Any]:
"""
允许通过属性访问数据中的任意字段。