SlackTextBlock#
- class safir.slack.blockkit.SlackTextBlock(**data)#
Bases:
SlackBaseBlock
A component of a Slack message with a heading and a text body.
If the formatted output is longer than 3000 characters, it will be truncated to avoid the strict uppper limit imposed by Slack.
- Parameters:
data (
Any
) –
Attributes Summary
Maximum length of formatted output, imposed by Slack.
Methods Summary
to_slack
()Convert to a Slack Block Kit block.
Attributes Documentation
-
max_formatted_length:
ClassVar
[int
] = 3000# Maximum length of formatted output, imposed by Slack.
Intended to be overridden by child classes that need to impose different maximum lengths.
Methods Documentation