Duplication membersAdded event
See original GitHub issueVersion
JavaScript “botbuilder”: “4.14.0”,
Describe the bug
Give a clear and concise description of what the bug is. We receive 2 or 4 events when user installs our application.
Expected behavior
Receive event once
Additional context
"membersAdded": [
{
"id": "29:1Iat8W8y5w9RxIgqFnDUqJlJalpDXC5jlXWG3hYzfczu25fn_gNbbc6WV7V36GbpgvQjpt8_w5nHuW_os7d",
"aadObjectId": "9272a828-5c43-4a1c-8a15-e315f8a8"
},
{
"id": "28:331df719-bfd2-4fcc-aa91-f08bc21a"
}
],
"type": "conversationUpdate",
"timestamp": "2022-11-12T12:57:45.190Z",
"id": "f:884a2807-d9d0-d4cb-ffd6-eec40244",
"channelId": "msteams",
"serviceUrl": "https://smba.trafficmanager.net/amer/",
"from": {
"id": "29:1Iat8W8y5w9RxIgqFnDUqJlJalpDXC5jlXWG3hYzfczu25fn_gNbbc6WV7V36GbpgvQjpt8_w5nHuW_os7d",
"aadObjectId": "9272a828-5c43-4a1c-8a15-e315f8a8"
},
"conversation": {
"conversationType": "personal",
"tenantId": "f8ed7ee1-1d5c-48b5-b6c3-6a31e6fc",
"id": "a:18hXVgntuPkzeTp8DS4JaeE7ua5b9sk24t8WVVfeGEb-Lt0Idw_ZOEAbWq9sGopVv6FzGM7BqZjyLv985oC4SwVjrjpMKumbK2UOj128CpWCnFvJdKQ-Xxdgz9NsK"
},
"recipient": {
"id": "28:331df719-bfd2-4fcc-aa91-f08bc21a",
"name": "ProHabits Bot"
},
"channelData": {
"tenant": {
"id": "f8ed7ee1-1d5c-48b5-b6c3-6a31e6fc"
}
},
"rawTimestamp": "2022-11-12T12:57:45.1909085Z",
"callerId": "urn:botframework:azure",
"hashId": "5da0a5f4-0e83-4e9d-a1d5-2026b69"
}
Do you have any ideas how we can receive event only once?
Issue Analytics
- State:
- Created 10 months ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Conversation events in your Teams bot - Microsoft Learn
Work with conversation events from your Microsoft Teams bot, channel event updates, team member events, and message reaction events with ...
Read more >microsoft graph api - Is there a reason why I would not receive ...
Is there a reason why I would not receive a conversationUpdate (membersAdded) event when my bot was installed to a new team? Ask...
Read more >[Question] Why am I getting duplicated conversation message ...
Actually we capture the conversationUpdate event of the bot and send some welcoming messages to a user (that is connected via webchat).
Read more >Time until Members added to Group Policy is Replicated
Group policy is replicated with the rest of the information that is replicated during a normal AD replication cycle as well as the...
Read more >Custom Event Store Using Custom Fields - Chamber Nation
Custom Event Store Using Custom Fields - Now Duplicate Them Easily for ... to manually add course attempts for members Added option to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi everyone, we couldn’t reproduce the issue. If we install the app normally, we only receive the event once (with the two ids, user and bot, but that’s expected). We can see two MembersAdded events when we install the app in two different scopes (team and personal) as shown in the images. @Serginyo90, can you give us more information? In which scope are you installing your bot (personal, team, meeting)? Do you have a sample bot to test this behavior?
Thanks!
@erquirogasw You can find the sample bot here https://github.com/Serginyo90/issue-with-ms-bot . P.S. I tried to reproduce it with Bot Framework Emulator but can’t. Can you try reproduce with Azure Bot?