How to post message as a bot and do other actions on behalf of a bot like channel creation.

Nithya Raghavendiran 21 Reputation points
2023-06-26T12:44:47.79+00:00

Can we use the graph apis to post messages in channels? or do any other actions like channel creation meeting creation. Bot to use the Graph apis to ensure the message is posted by bot and not the service account.

We are building a bot in botbuilder in JS.
Need to understand what are the apis and frameworks we can use to do actions on behalf of a bot.

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 9,066 Reputation points Microsoft External Staff Moderator
    2023-06-28T06:42:34.1966667+00:00

    Please refer below document which explains how to send chatMessage in the specified channel.

    https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

    Thanks, 

    Prasad Das

    ************************************************************************* 

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


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.