fix-chat-id
All checks were successful
deploy / deploy (push) Successful in 1m14s

This commit is contained in:
2023-11-17 08:00:57 +03:00
parent 5c5cd4bf00
commit 31a8536d27
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ from validators.chat import Message, ChatUpdate
async def notify_message(message: Message, action="create"):
channel_name = f"message:{message["chat"]}"
channel_name = f"message:{message["chat_id"]}"
data = {"payload": message, "action": action}
try:
await redis.publish(channel_name, json.dumps(data))