How to write Microsoft Teams chat messages using Grpah API ?

shital diwate 1 Reputation point
2021-01-01T12:47:45.81+00:00

I need to write all messages to Microsoft Team chats using API. Is Graph API has the end point for the same ?
Or is there any way to get it done ?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,080 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,988 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,245 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,091 Reputation points Microsoft Vendor
    2021-01-04T02:34:14.17+00:00

    @shital diwate ,

    As we are mainly responsible for general issue of Microsoft Teams, your question is more related to development which is not in our scope. I would add office-teams-app-dev tag for you.

    Meanwhile, this article can provide some benefits for your idea.

    You could create a deep link to a chat as below and open it in browser. Just replace the content of users and message.
    https://teams.microsoft.com/l/chat/0/0?users=user01[@](/users/na/?userId=a28c79c1-c609-48db-b55f-1783d1187afb).com&message=This is a message.

    Then, it will open the conversation with user01 and input the message automatically.
    53084-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.