简体   繁体   中英

Sending automated messages to MS Teams channel using .NET 4.7.2

Was wondering if there were any tutorials on how to send messages to a MS Teams channel using a .NET Framework service? I've been looking at two different nuget packages Microsoft.Bot.Connector.Teams and Microsoft.Bot.Builder. Any suggestions would be a great help, thanks.

It's certainly possible to use the Bot approach, to send a "proactive" message (as it's called when the bot initiates the conversation, as opposed to just replying to a user). However, you haven't mentioned if you actually have a bot already?

If you do have a bot, I've given some guidance on sending the pro-active message at Programmatically sending a message to a bot in Microsoft Teams .

If you don't have a bot already though, a more simple approach is just to use an incoming webhook .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM