From 67740ec9575fe100809d3cad14aaa6876bf0f6eb Mon Sep 17 00:00:00 2001 From: Alexander Maximenyuk Date: Thu, 18 Jul 2024 12:51:06 +0200 Subject: [PATCH] test: disable direct notification body length limit --- pybotx/client/notifications_api/direct_notification.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pybotx/client/notifications_api/direct_notification.py b/pybotx/client/notifications_api/direct_notification.py index ae0ba20a..774689f2 100644 --- a/pybotx/client/notifications_api/direct_notification.py +++ b/pybotx/client/notifications_api/direct_notification.py @@ -81,11 +81,6 @@ def from_domain( if file: api_file = BotXAPIAttachment.from_file_attachment(file) - if len(body) > MAX_NOTIFICATION_BODY_LENGTH: - raise ValueError( - f"Message body length exceeds {MAX_NOTIFICATION_BODY_LENGTH} symbols", - ) - body, mentions = find_and_replace_embed_mentions(body) return cls(