Skip to content

Commit

Permalink
test: disable direct notification body length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Maximenyuk committed Jul 18, 2024
1 parent 09a8cec commit 67740ec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pybotx/client/notifications_api/direct_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 67740ec

Please sign in to comment.