Hello everyone,
We are working on a Microsoft Teams Bot service to deliver notifications from our app (it is a one way communication bot)
We have integrated following services:
- Graph:
-
POST login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token in order to get a token and be able to get next services.
-
GET graph.microsoft.com/v1.0/users/<email> to get Microsoft User Id to be able to create a Microsoft Teams conversation (Bot=>User). Here we're sending the token obtained in the previous step and we have no problem finding users that are in the same tenant as bot is.
- TeamsBot Services:
-
POST smba.trafficmanager.net/teams/v3/conversations We use this endpoint to create a one way conversation Bot => Microsoft Teams User and be able to send messages to that conversation. We're sending a payload as follows:
{
"members": [
{
"id": "<Microsoft User ID previously obtained>"
}
],
"bot": {
"id": "<Our Bot ID obtained from entra.microsoft.com Application (client) ID"
},
"channelData": {
"tenant": {
"id": "<Tenant ID obtained from entra.microsoft.com Directory (tenant) ID>"
}
},
"isGroup": false
}
- With previous service, we're able to get a conversation ID between Microsoft Teams Bot and a Microsoft Teams User
-
POST smba.trafficmanager.net/v3/conversations/<conversation_id>/activities where conversation_id is the Conversation ID obtained from the previous service. With this service we're able to send a message notification from our app to a user in Microsoft Teams App.
However, we added a few users (guests) to our Microsoft Teams app but when we're trying to follow previous process to send messages to those users this is what it is happening:
However this is not working for us.
We would like to know what we're missing to get Microsoft Teams Users messages from our Microsoft Teams Bot.
Thanks in advance.