Microsoft Teams

Send message in teams

Get your webhook url there:

Create a webwook for naas

Then you should see your webhook url

You can use it below to send message in your channel

Send message

import naas_drivers
webhook = "https://COMPANY.webhook.office.com/webhookb2/****/***"
message = "Hello friends"
result = naas_drivers.teams.connect(webhook).send(message)

Image

Image be url only, if you need expose asset before sending it

import naas_drivers
webhook = "https://COMPANY.webhook.office.com/webhookb2/****/***"
message = "Hello friends"
image = "http://i.imgur.com/c4jt321l.png")
result = naas_drivers.teams.connect(webhook).send(message, image=image)