create-msg-fix5

This commit is contained in:
Untone 2023-10-13 21:26:55 +03:00
parent a891470527
commit 12e2dbfbdf

View File

@ -24,6 +24,7 @@ async def create_message(_, info, chat: str, body: str, reply_to=None):
return {"error": "chat is not exist"}
else:
chat_dict = json.loads(chat_data)
print(chat_dict)
message_id = (await redis.execute("GET", f"chats/{chat_dict['id']}/next_message_id")) or 0
message_id = int(message_id)
new_message = {