🎨 change method into private

This commit is contained in:
yanyongyu
2020-12-28 13:59:54 +08:00
parent 0c43d83494
commit 1c9df5ac02
2 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ class Driver(BaseDriver):
f"WebSocket Connection from <y>{adapter.upper()} "
f"Bot {x_self_id}</y> Accepted!")
self.bot_connect(bot)
self._bot_connect(bot)
try:
while not ws.closed:
@ -203,7 +203,7 @@ class Driver(BaseDriver):
asyncio.create_task(bot.handle_message(data))
finally:
self.bot_disconnect(bot)
self._bot_disconnect(bot)
class WebSocket(BaseWebSocket):