fix: bot switching

This commit is contained in:
Junyan Qin
2025-08-15 17:02:00 +08:00
parent bf2bc70794
commit 2b8eb5f01c
2 changed files with 11 additions and 5 deletions

View File

@@ -191,7 +191,7 @@ class RuntimeConnectionHandler(handler.Handler):
async def get_bot_info(data: dict[str, Any]) -> handler.ActionResponse:
"""Get bot info"""
bot_uuid = data['bot_uuid']
bot = await self.ap.bot_service.get_bot(bot_uuid, include_secret=False)
bot = await self.ap.bot_service.get_runtime_bot_info(bot_uuid, include_secret=False)
return handler.ActionResponse.success(
data={
'bot': bot,