mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
enh: channel notification
This commit is contained in:
@@ -21,7 +21,7 @@ def post_webhook(url: str, message: str, event_data: dict) -> bool:
|
||||
elif "https://discord.com/api/webhooks" in url:
|
||||
payload["content"] = (
|
||||
message
|
||||
if len(message) > 2000
|
||||
if len(message) < 2000
|
||||
else f"{message[: 2000 - 20]}... (truncated)"
|
||||
)
|
||||
# Microsoft Teams Webhooks
|
||||
|
||||
Reference in New Issue
Block a user