I want to run a script of Python and in the end send the results in a text format to a couple of employees through MS Teams
Is there any already build library that would allow me to send a message in Microsoft Teams through Python code?
1. Create a webhook in MS Teams
Add an incoming webhook to a Teams channel:
2. Install pymstreams
pip install pymsteams
3. Create your python script
import pymsteams
myTeamsMessage = pymsteams.connectorcard("<Microsoft Webhook URL>")
myTeamsMessage.text("this is my text")
myTeamsMessage.send()
More information available here: