This commit is contained in:
Timothy Jaeryang Baek 2024-12-24 21:17:24 -07:00
parent 4442411f40
commit 688f11e1c5

View File

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