🐛 修复了消息模型储存时类型不兼容的问题

This commit is contained in:
远野千束 2024-05-23 23:32:02 +08:00
parent 4cfad0b5ca
commit 0f35613e50

View File

@ -40,7 +40,7 @@ async def onebot_v11_event_monitor(bot: v11.Bot, event: v11.MessageEvent):
message_id=str(event.message_id),
message=event.message,
message=str(event.message),
message_text=event.raw_message,
message_type=event.message_type,
)
@ -63,7 +63,7 @@ async def onebot_v12_event_monitor(bot: v12.Bot, event: v12.MessageEvent):
message_id=str(event.message_id),
message=event.message,
message=str(event.message),
message_text=event.raw_message,
message_type=event.message_type,
)
@ -85,7 +85,7 @@ async def satori_event_monitor(bot: satori.Bot, event: satori.MessageEvent):
group_id=group_id,
user_id=str(event.user.id),
message_id=str(event.message.id),
message=event.message,
message=str(event.message),
message_text=event.message.content,
message_type=event_utils.get_message_type(event),
)