feat: add support for wecombot,wxoa,slack and qqo

This commit is contained in:
wangcham
2025-11-06 09:21:17 +00:00
parent ceb38d91b4
commit 913b9a24c4
13 changed files with 359 additions and 141 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ class BotService:
adapter_runtime_values['bot_account_id'] = runtime_bot.adapter.bot_account_id
# 为支持统一 webhook 的适配器生成 webhook URL
# 目前只有 wecom 支持
if persistence_bot['adapter'] == 'wecom':
# 支持:wecom、wecombot、officialaccount、qqofficial、slack
if persistence_bot['adapter'] in ['wecom', 'wecombot', 'officialaccount', 'qqofficial', 'slack']:
api_port = self.ap.instance_config.data['api']['port']
webhook_url = f"/bots/{bot_uuid}"
adapter_runtime_values['webhook_url'] = webhook_url