validators
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import json
|
||||
from services.redis import redis
|
||||
from validators.chat import Message
|
||||
|
||||
|
||||
async def notify_message(message, chat_id: str):
|
||||
async def notify_message(message: Message, chat_id: str):
|
||||
channel_name = f"chat:{chat_id}"
|
||||
data = {**message, "kind": "new_message"}
|
||||
try:
|
||||
|
Reference in New Issue
Block a user