Sending Message to Teams using Python
Python code
import pymsteams
def send_message_to_teams():
webhook_url = 'https://outlook.office.com/webhook/...'
message = pymsteams.connectorcard(webhook_url)
message.text('Hello from Python!')
message.send()
send_message_to_teams()Create Incoming Webhook in Teams
Last updated