diff --git a/slack/web/classes/elements.py b/slack/web/classes/elements.py index f6dc870ea..d448d31e9 100644 --- a/slack/web/classes/elements.py +++ b/slack/web/classes/elements.py @@ -78,7 +78,7 @@ def attributes(self) -> Set[str]: return super().attributes.union({"style", "value"}) text_max_length = 75 - value_max_length = 75 + value_max_length = 2000 def __init__( self, diff --git a/tests/web/classes/test_elements.py b/tests/web/classes/test_elements.py index b1ebf7d66..f9ca47f11 100644 --- a/tests/web/classes/test_elements.py +++ b/tests/web/classes/test_elements.py @@ -65,7 +65,7 @@ def test_text_length(self): def test_value_length(self): with self.assertRaises(SlackObjectFormationError): ButtonElement( - text="Button", action_id="button", value=STRING_301_CHARS + text="Button", action_id="button", value=STRING_3001_CHARS ).to_dict() def test_invalid_style(self):