'Python to publish to Microsoft Teams Chat
We have been playing with the Python API to publish to MS teams. Worked out how to publish to a channel - it is quite easy. Is it possible to publish to a Chat group however?
Happy to publish to a channel and republished to a chat channel if that is possible.
MORE INFO: This script works via SQL server. The message appears in the Channel associated with the webhook.
declare @script nvarchar(max) = N'
import pymsteams
myTeamsMessage = pymsteams.connectorcard("webhook as generated by Teams")
myTeamsMessage.text("Testing From SQL Server")
myTeamsMessage.send()
'
execute sp_execute_external_script @language = N'Python', @script = @script
The process is that from a channel in teams you use the connector to generate the webhook via the Configure button

However no such functionality exists as far as I can tell to do the same from a Chat group, hence the question above.
As indicated above, I would be happy for teams to automatically repost from a Channel to a Chat group, but not sure how to make this happen.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
