How to Send Messages to Individual Accounts in Microsoft Teams Chat using Python and MS Graph API
- 2024.12.17
- MicrosoftTeams

Using Python, it’s possible to send messages to individual accounts in MS Teams. It’s easy to send messages in Teams channels using Webhooks. But to send messages to individual accounts, there are some specific steps that need to be followed. The steps are shown in the video in details.
The Google Colab notebook link is here: https://colab.research.google.com/drive/1hFZpGEbss86FzLMSaTQt9r7mA9bJ8r68?usp=sharing
I used some documentations provided by Microsoft as references. The links are provided here-
How to create a chat- https://learn.microsoft.com/en-us/graph/api/chat-post?view=graph-rest-1.0&tabs=http
How to send a message- https://learn.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http#http-request
Authentication using Azure Identity library- https://learn.microsoft.com/en-us/python/api/overview/azure/identity-readme?view=azure-python#authenticate-users
-
前の記事
Kubernetes Podcast 2024 Recap 2024.12.17
-
次の記事
米国株の株式投資。量子コンピューターの関連9銘柄、最新動向と株価。IonQ、リゲッティなど~あす上がる株米国版。Dec. 17, 2024。最新のアメリカ株価と株式投資。高配当株やデイトレ情報も 2024.12.17