|
@@ -22,7 +22,7 @@ def post_webhook(url: str, message: str, event_data: dict) -> bool:
|
|
payload["content"] = (
|
|
payload["content"] = (
|
|
message
|
|
message
|
|
if len(message) > 2000
|
|
if len(message) > 2000
|
|
- else f"{message[: 2000 - 14]}... (truncated)"
|
|
|
|
|
|
+ else f"{message[: 2000 - 20]}... (truncated)"
|
|
)
|
|
)
|
|
# Microsoft Teams Webhooks
|
|
# Microsoft Teams Webhooks
|
|
elif "webhook.office.com" in url:
|
|
elif "webhook.office.com" in url:
|