mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-28 00:14:21 +00:00
feat: add support for wecombot,wxoa,slack and qqo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user