From a2062e6baa93e7d1457c46da3c6eb0c9af689842 Mon Sep 17 00:00:00 2001 From: ooaaqq Date: Fri, 2 Oct 2026 11:38:38 +0800 Subject: [PATCH] fix(milky): pass reaction type for message reactions --- .../uniseg/adapters/milky/exporter.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nonebot_plugin_alconna/uniseg/adapters/milky/exporter.py b/src/nonebot_plugin_alconna/uniseg/adapters/milky/exporter.py index f57b33b..835f05d 100644 --- a/src/nonebot_plugin_alconna/uniseg/adapters/milky/exporter.py +++ b/src/nonebot_plugin_alconna/uniseg/adapters/milky/exporter.py @@ -310,8 +310,14 @@ async def reaction(self, emoji: Emoji, mid: Any, bot: Bot, context: Target | Eve return else: return + assert emoji.id.isdigit() + # Follow the QQ adapter's classification of numeric emoji IDs. await bot.send_group_message_reaction( - group_id=group_id, message_seq=message_seq, reaction=emoji.id, is_add=not delete + group_id=group_id, + message_seq=message_seq, + reaction=emoji.id, + reaction_type="face" if int(emoji.id) < 5000 else "emoji", + is_add=not delete, ) def get_reply(self, mid: Any):