Forum Discussion

syamsundhar's avatar
syamsundhar
Copper Contributor
Jun 25, 2021

Post Image to Teams channel from local path using python

Hi All, 

 

I am trying to post an image(.png) to Microsoft teams channel using webhooks but i am seeing empty box in channel instead of image using below code. Please let me know if there any solution to fix this.

myMessageSection   = pymsteams.cardsection()
myMessagemessage = pymsteams.connectorcard("webhook url")
myMessageSection.activityImage(filepath)
myMessageSection.send()

 

6 Replies

  • Hello syamsundhar   Since there has been no response yet from this community, I recommend that you contact Microsoft support or answers.microsoft.com, where support agents are available to help troubleshoot issues until resolution.

Resources