Skip to content

Commit

Permalink
🐛 fix message convert
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Dec 27, 2023
1 parent 51a3051 commit 588337b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot/adapters/qq/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def _construct(msg: str) -> Iterable[MessageSegment]:

@classmethod
def from_guild_message(cls, message: GuildMessage) -> Self:
msg = Message()
msg = cls()
if message.mention_everyone:
msg.append(MessageSegment.mention_everyone())
if message.content:
Expand All @@ -398,7 +398,7 @@ def from_guild_message(cls, message: GuildMessage) -> Self:

@classmethod
def from_qq_message(cls, message: QQMessage) -> Self:
msg = Message()
msg = cls()
if message.content:
msg.extend(Message(message.content))
if message.attachments:
Expand Down

0 comments on commit 588337b

Please sign in to comment.