Skip to content

Commit

Permalink
ok,fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Decrabbityyy committed Aug 10, 2024
1 parent 537c952 commit 416ca4d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 416ca4d

Please sign in to comment.