Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not receiving message update events #4491

Closed
giri-nitesh opened this issue Jun 19, 2023 · 6 comments
Closed

Bot not receiving message update events #4491

giri-nitesh opened this issue Jun 19, 2023 · 6 comments
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Issue is created by anyone that is not a collaborator in the repository. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@giri-nitesh
Copy link

giri-nitesh commented Jun 19, 2023

Versions

botbuilder SDK version: ^4.18.0
nodejs version: 14.16.1

Describe the bug

I set up a simple bot to welcome users when they join the conversation as mentioned in the sample. The code sample handles the event in this.onMessage block so that when any channel member sends any message in the channel, we receive event for that.
Note: I did gave RSC permissions to bot and updated menifest.js file as mentioned in the doc.

So far so good. I am getting all the new message event across channels of team in which the bot is installed. I extend this code to handle other events such as: this.onTeamsMessageSoftDelete, this.onMessageDelete, this.onMessageUpdate. I see support for handling these type of messages was introduced by this pr. Problem is my bot doesn't get any event when a message is updated/ deleted in the channel. Am I missing something or it's a bug?

I have double checked permissions for my bot application, and they look good to me. Any help would be appreciated. Thanks in advance !

To Reproduce

Steps to reproduce the behavior:

  1. Set up the bot mentioned above
  2. Give RSC permissions and update menifest.js file to receive all conversation messages with RSC
  3. Add a handler this.onMessageDelete or this.onMessageUpdate below this.onMessage
  4. Update/delete message in teams -> this.onMessageDelete/this.onMessageDelete block is not executed

Expected behavior

Bot should receive event when any message is updated or deleted in channel.

@giri-nitesh giri-nitesh added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jun 19, 2023
@breakingram
Copy link
Contributor

Hi @giri-nitesh, I'm investigating.

@breakingram
Copy link
Contributor

@giri-nitesh,

Which channel are you using?

@giri-nitesh
Copy link
Author

@ramfattah I am using standard channel

@stevkan stevkan added customer-reported Issue is created by anyone that is not a collaborator in the repository. Bot Services Required for internal Azure reporting. Do not delete. Do not change color. labels Jun 27, 2023
@breakingram
Copy link
Contributor

Hi @giri-nitesh,

In context of Bot Framework, we refer to "channel" as the communication application that the bot is connected to.

For example, are you using the Teams channel, WebChat channel, or the Emulator channel? Each of these channels can behave differently when it comes to update events.

@breakingram
Copy link
Contributor

Closing due to inactivity.

@giri-nitesh
Copy link
Author

@ramfattah sorry for the late reply, I am using Teams channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Issue is created by anyone that is not a collaborator in the repository. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

3 participants