|
@@ -894,7 +894,7 @@ async def chess_handler(bot, event, command):
|
|
args = command.args[1:]
|
|
args = command.args[1:]
|
|
|
|
|
|
peer_id = str(get_peer_id(event.peer_id))
|
|
peer_id = str(get_peer_id(event.peer_id))
|
|
- result = await subcommand[0](bot.chess, peer_id if not event.is_private and (name == "create" or (peer_id in chess.sessions and name not in ("start", "from"))) else event.sender.id, *args)
|
|
|
|
|
|
+ result = await subcommand[0](bot.chess, peer_id if not event.is_private and (name == "create" or (peer_id in bot.chess.sessions and name not in ("start", "from"))) else event.sender.id, *args)
|
|
|
|
|
|
for reply in result:
|
|
for reply in result:
|
|
if isinstance(reply, bytes):
|
|
if isinstance(reply, bytes):
|