I’m developing a bot with a tab for MS Teams. I can upload and install it successfully.
Problem 1:
I don’t receive any event notifications on my messaging endpoint during install/uninstall. I install the bot to Teams using manual upload with ngrok tunnel. The messaging endpoint is working correctly, I receive other requests to this endpoint except POST notification on install/uninstall.
Problem 2:
I try to get a conversatoin Id to send proactive messages to the General channel using this endpoint https://smba.trafficmanager.net/teams/v3/conversations
. But I always get this error:
{
"error": {
"code": "BotNotInConversationRoster",
"message": "The bot is not part of the conversation roster."
}
}
This is my request to https://smba.trafficmanager.net/teams/v3/conversations
(sending it from Postman):
{
"activity": {
"type": "message",
"text": "Hi!"
},
"bot": {
"id": "{{APPLICATION_ID}}",
"name": "App Name"
},
"channelData": {
"channel": {
"id": "{{CHANNEL_ID}}"
}
},
"isGroup": true,
"tenantId": "{{TENANT_ID}}"
}