Slack Message#
- class SlackMessage(*blocks, token: str = '', text: str = '')[source]#
Bases:
objectA Slack message
- Parameters:
*blocks – any child blocks
token – the Slack token
text – the message alternative text, shown if the message cannot be rendered by Slack
- add_block(block: SlackMessageBlock) None[source]#
Add a block to the message.