fix: reply中的format_info为空
This commit is contained in:
@@ -309,10 +309,7 @@ class MessageSending(MessageProcessBase):
|
|||||||
|
|
||||||
def set_reply(self, reply: Optional["MessageRecv"] = None) -> None:
|
def set_reply(self, reply: Optional["MessageRecv"] = None) -> None:
|
||||||
"""设置回复消息"""
|
"""设置回复消息"""
|
||||||
if (
|
if self.message_info.format_info is not None and "reply" in self.message_info.format_info.accept_format:
|
||||||
self.message_info.format_info.accept_format is not None
|
|
||||||
and "reply" in self.message_info.format_info.accept_format
|
|
||||||
):
|
|
||||||
if reply:
|
if reply:
|
||||||
self.reply = reply
|
self.reply = reply
|
||||||
if self.reply:
|
if self.reply:
|
||||||
|
|||||||
Reference in New Issue
Block a user