mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 19:44:21 +00:00
feat: fix bot id
This commit is contained in:
@@ -98,14 +98,14 @@ class WecomBotAdapter(adapter.MessagePlatformAdapter):
|
||||
missing_keys = [key for key in required_keys if key not in config]
|
||||
if missing_keys:
|
||||
raise ParamNotEnoughError('缺少相关配置项,请查看文档或联系管理员')
|
||||
self.bot_account_id = self.config['BotId']
|
||||
self.bot = WecomBotClient(
|
||||
Token=self.config['Token'],
|
||||
EnCodingAESKey=self.config['EncodingAESKey'],
|
||||
Corpid=self.config['Corpid'],
|
||||
logger=self.logger
|
||||
logger=self.logger,
|
||||
)
|
||||
|
||||
self.bot_account_id = self.config['BotId']
|
||||
|
||||
async def reply_message(self, message_source:platform_events.MessageEvent, message:platform_message.MessageChain,quote_origin: bool = False):
|
||||
|
||||
content = await self.message_converter.yiri2target(message)
|
||||
|
||||
@@ -54,7 +54,7 @@ spec:
|
||||
en_US: BotId
|
||||
zh_Hans: 机器人ID
|
||||
type: string
|
||||
required: true
|
||||
required: false
|
||||
default: ""
|
||||
execution:
|
||||
python:
|
||||
|
||||
Reference in New Issue
Block a user