⚗️ support segment typing for message

This commit is contained in:
yanyongyu
2021-05-10 00:54:15 +08:00
parent 4b38afdcd7
commit f8ad9ef278
5 changed files with 9 additions and 9 deletions

View File

@ -155,7 +155,7 @@ class MessageSegment(BaseMessageSegment):
return {"msgtype": self.type, self.type: copy(self.data)}
class Message(BaseMessage):
class Message(BaseMessage[MessageSegment]):
"""
钉钉 协议 Message 适配。
"""