Skip to content

Commit ee7e9ea

Browse files
authored
update Target chat_if
1 parent b61c918 commit ee7e9ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/nonebot_plugin_alconna/uniseg/adapters/yunhu

src/nonebot_plugin_alconna/uniseg/adapters/yunhu/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_target(self, event: Event, bot: Union[Bot, None] = None) -> Target:
2626
if isinstance(event, MessageEvent):
2727
return Target(
2828
event.event.sender.senderId,
29-
event.event.chat.chatId,
29+
event.event.chat.chatId if event.event.chat.chatType == "group" else event.event.sender.senderId,
3030
private=(event.event.chat.chatType == "bot"),
3131
source=event.event.message.msgId,
3232
adapter=self.get_adapter(),

0 commit comments

Comments
 (0)