Skip to content

Commit

Permalink
fix(dingtalk): 修复 DingTalk 适配器错误
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 committed May 27, 2023
1 parent fe06f34 commit 787a7dd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""DingTalk 适配器事件。"""
from functools import cached_property
import time
from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Union
from typing_extensions import Self
Expand Down Expand Up @@ -55,7 +54,7 @@ class DingTalkEvent(MessageEvent["DingTalkAdapter", DingTalkMessage]):
response_msg: Union[None, str, Dict[str, Any], DingTalkMessage] = None
response_at: Union[None, Dict[str, Any], DingTalkMessage] = None

@cached_property
@property
def message(self) -> DingTalkMessage:
"""返回 message 字段。"""
return DingTalkMessage.text(self.text.content)
Expand Down

0 comments on commit 787a7dd

Please sign in to comment.