SlackTextField¶
- pydantic model safir.slack.blockkit.SlackTextField¶
One field in a Slack message with a heading and text body.
Intended for use in the
fields
portion of a Block Kit message. If the formatted output is longer than 2000 characters, it will be truncated to avoid the strict upper limit imposed by Slack.- Parameters:
data (
Any
)
Show JSON schema
{ "title": "SlackTextField", "description": "One field in a Slack message with a heading and text body.\n\nIntended for use in the ``fields`` portion of a Block Kit message. If the\nformatted output is longer than 2000 characters, it will be truncated to\navoid the strict upper limit imposed by Slack.", "type": "object", "properties": { "heading": { "title": "Heading", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "heading", "text" ] }
- Fields:
- field heading: str [Required]¶
Heading of the field (shown in bold).
- field text: str [Required]¶
Text of the field as normal text.
This is always marked as vertabim, so channel mentions or @-mentions of users will not be treated as special.