Skip to content

Instantly share code, notes, and snippets.

@aashishrbhandari
Created October 25, 2022 15:19
Show Gist options
  • Save aashishrbhandari/4b16fbea2d8889f700e14885b3aef7ef to your computer and use it in GitHub Desktop.
Save aashishrbhandari/4b16fbea2d8889f700e14885b3aef7ef to your computer and use it in GitHub Desktop.
# How to Use the Below Blocks
# Refer Python code: Github Gist: slack_webhook_message.py
## Not Very Effective
## To Create a `Section` in a Table Format
{
"blocks": [
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "This is a mrkdwn section block :ghost: *this is bold*, and ~this is crossed out~, and <https://google.com|this is a link>"
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*I am First Section of the code. till the 50% details isdasd dasdsadsadsa dsadjsa*"
},
{
"type": "mrkdwn",
"text": "I am second se tion of the code and i am ttill the next 50% perscent of the code slacksadasd asdsadasd sadsadsadas"
},
{
"type": "plain_text",
"text": "Team1 my name is teammaet 1 ias dsamsmadsa\nTeam2\nTeam3\nTeam4\nTeam5\n"
},
{
"type": "plain_text",
"text": "Team1 my name is teammaet 1 ias dsamsmadsa\nTeam2\nTeam3\nTeam4\nTeam5\n"
}
]
},
{
"type": "divider"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment