diff --git a/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py b/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py index 4f60404..1ae5f49 100644 --- a/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py +++ b/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py @@ -388,18 +388,17 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message res = await bot.send_to_c2c( openid=target.id, message=message, msg_id=target.source, msg_seq=target.extra["qq.reply_seq"], **kwargs ) + elif target.extra.get("qq.interaction",False): + res = await bot.send_to_group(group_openid=target.id, message=message, event_id=target.source, **kwargs) + return res else: - if target.extra.get("qq.interaction",False): - res = await bot.send_to_group(group_openid=target.id, message=message, event_id=target.source, **kwargs) - return res - else: - res = await bot.send_to_group( - group_openid=target.id, - message=message, - msg_id=target.source, - msg_seq=target.extra["qq.reply_seq"], - **kwargs, - ) + res = await bot.send_to_group( + group_openid=target.id, + message=message, + msg_id=target.source, + msg_seq=target.extra["qq.reply_seq"], + **kwargs, + ) target.extra["qq.reply_seq"] += 1 return res