feat: add support for sending active messages in dingtalk

This commit is contained in:
wangcham
2025-03-11 04:27:17 -04:00
parent 0e52f679a2
commit 7abd999420
5 changed files with 59 additions and 9 deletions
+5 -1
View File
@@ -152,7 +152,11 @@ class DingTalkAdapter(adapter.MessagePlatformAdapter):
async def send_message(
self, target_type: str, target_id: str, message: platform_message.MessageChain
):
pass
content = await DingTalkMessageConverter.yiri2target(message)
if target_type == 'person':
await self.bot.send_proactive_message_to_one(target_id,content)
if target_type == 'group':
await self.bot.send_proactive_message_to_group(target_id,content)
def register_listener(
self,