forked from kodorvan/stcs
Switched to demo mode
This commit is contained in:
@@ -58,7 +58,8 @@ class WebSocketBot:
|
||||
)
|
||||
logger.info("User %s connected to WebSocket", tg_id)
|
||||
else:
|
||||
await asyncio.sleep(30)
|
||||
await asyncio.sleep(5)
|
||||
await self.try_connect_user(api_key, api_secret, tg_id)
|
||||
|
||||
await asyncio.sleep(10)
|
||||
|
||||
@@ -73,6 +74,7 @@ class WebSocketBot:
|
||||
"""Try to connect a user to the WebSocket."""
|
||||
try:
|
||||
self.ws_private = WebSocket(
|
||||
demo=True,
|
||||
testnet=False,
|
||||
channel_type="private",
|
||||
api_key=api_key,
|
||||
|
||||
Reference in New Issue
Block a user