Using webhooks, one can send automated messages (JSON payload) from one app to another. This can be triggered in response to specific events. Creating an Incoming Webhook gives you a unique URL to which you send a JSON payload with the message text and some options.
Make sure you are running python 3.5.6 or above.
- Python Installation - https://www.python.org/downloads/
- Requests Installation - pip install requests
Make sure to change the Webhook URL , channel name. Run the main.py using python main.py
For more info please refer to my medium blog