How to Send Replies in Microsoft Teams Using Bot Name Instead of Username via Graph API?
I know we can use incoming webhook, but we can’t use it.
What I’m looking for:
Any specific configurations needed in the Azure portal or Microsoft Graph API to achieve this. How to Send the message with the bot’s name instead of the user’s name.
Any help would be greatly appreciated!
I’m working on an external application that sends replies to messages in Microsoft Teams using the Microsoft Graph API. Currently, the replies are sent using the username associated with the authenticated account. However, I want the replies to appear as if they’re coming from the bot itself, using the application name registered in the Azure portal. The bot is also registered as a message extension app. Ideally, I want the responses to display the bot’s name, rather than the username of the account making the API call. Here are the steps I’m currently following:The bot is authenticated and authorized using OAuth2 with the appropriate permissions.I use the /reply Or /message endpoint to send messages.I know we can use incoming webhook, but we can’t use it. What I’m looking for:Any specific configurations needed in the Azure portal or Microsoft Graph API to achieve this. How to Send the message with the bot’s name instead of the user’s name. Any help would be greatly appreciated! Read More