This commit is contained in:
parent
ac829b8086
commit
7a561603ed
|
@ -9,5 +9,6 @@ async def notify_message(message: Message, chat_id: str):
|
|||
data = {"payload": message, "kind": "new_message"}
|
||||
try:
|
||||
await redis.publish(channel_name, json.dumps(data))
|
||||
print(f"[services.presence] notification was sent successfully {data}")
|
||||
except Exception as e:
|
||||
print(f"Failed to publish to channel {channel_name}: {e}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user