Send a message to the Team Channel from the custom Teams Tab that I developed

Serban 21 Reputation points
2021-08-27T14:39:52.22+00:00

I'm building a custom Teams tab app.

It should perform some simple tasks (retrieve some content from some URL) and then send a message to the Channel in which it's added (just like when a user writes a message in the Posts section.

Can somebody please point me to the initial steps for this ? Some introductory documentation, some code sample ?
I can't seem to find the starting point...

Thank you.

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,065 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChetanSharmamsft 1,026 Reputation points Microsoft Vendor
    2021-09-09T06:32:17.377+00:00

    Adding answer from comment section for more visibility:

    @Serban - You can send proactive messages while installing/adding bot in Teams channel.
    Reference Docs:
    https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet

    https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-proactive-installation/csharp

    You can also use Graph API to send message in channel based on your requirement:
    https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

    -----------------------------------------------------------------------------------------------------------------------------

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments