2
votes

We can send private messages from a Microsoft Bot to a Teams user. It appears as a chat between bot and a user.

But I need a functionality where a bot can send message on behalf of user in Teams and it would exactly appears as a 1:1 chat of two users in Teams, not as a chat between bot and a user.

Thanks

@mdrichardson-MSFT, Nope it doesn't. The question link that you have added here talks about posting message in channels of Teams. But I need to send private message to user.jayanta
The answer is the same though. 1. Can't do it directly with the Bot Framework. Only works with Graph APImdrichardson
@mdrichardson-MSFT The problem is Graph API is not available to send private messages. Currently they are only available for posting messages in Channels. So I'm looking to achieve through Bot Framework if doable.jayanta
Sorry, meant this link. Regardless, this is definitely not doable directly through the Bot Framework. If you can get Graph API to support it, you have to integrate that code into your bot.mdrichardson