aios shell support /connect command , connect to a agent though tunnel easy.

This commit is contained in:
Liu Zhicong
2023-09-19 15:43:17 -07:00
parent feca072a4f
commit 298ee73a6b
4 changed files with 123 additions and 19 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ class TelegramTunnel(AgentTunnel):
logger.warning(f"tunnel {self.tunnel_id} is already started")
return False
self.is_start = True
logger.warning(f"tunnel {self.tunnel_id} is starting...")
logger.info(f"tunnel {self.tunnel_id} is starting...")
self.bot = Bot(self.tg_token)
self.update_queue = asyncio.Queue()
@@ -92,7 +92,7 @@ class TelegramTunnel(AgentTunnel):
update_id += 1
asyncio.create_task(_run_app())
logger.warning(f"tunnel {self.tunnel_id} started.")
logger.info(f"tunnel {self.tunnel_id} started.")
return True
async def close(self) -> None: