Skip to content

Commit

Permalink
🔖 version 0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 21, 2023
1 parent e85970f commit 2801f66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ class Reply(Segment):
id: str
msg: Optional[Union[Message, str]]

class Reference(Segment):
origin: Any
id: Optional[str]
msg: Optional[Union[Message, str]]

class Card(Segment):
raw: str
content: Optional[dict]
Expand All @@ -330,6 +335,8 @@ class Other(Segment):
- `File`: 匹配 `File` 类型的 `MessageSegment`
- `Video`: 匹配 `Video` 类型的 `MessageSegment`
- `Emoji`: 匹配 `Emoji` 类型的 `MessageSegment`
- `Reply`: 匹配 `Reply` 类型的 `MessageSegment`
- `Reference`: 匹配 Reference 类型的 `MessageSegment`。转发消息 (Forward) 也属于此类
- `Card`: 匹配 `Card` 类型的 `MessageSegment`,对应如 `qq` 中的小程序卡片
- `Other`: 匹配除以上类型外的 `MessageSegment`

Expand Down

0 comments on commit 2801f66

Please sign in to comment.