-
Notifications
You must be signed in to change notification settings - Fork 281
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
feat: teams message update & message delete events #4374
Conversation
Pull Request Test Coverage Report for Build 3570060710
💛 - Coveralls |
The 2 lines in |
@microsoft-github-policy-service agree company="Microsoft" |
…TeamsSoftDeleteMessage to Teams MessageSoftDelete, TeamsEditMessage to TeamsMessageEdit
Hi @singhk97 , could you explain a bit why/how message update and message delete are related to OnConversationUpdateActivity? I am bit confused here. |
|
Make a lot more sense! Thanks for the clarification! |
This PR aims to extend the Bot SDK so that developers can consume newly added events that Teams will emit to the bot. They are:
TeamsMessageEdit
- a user editing a message in Teams.TeamsMessageUndelete
- a user undo-ing a deleted message in Teams.TeamsMessageSoftDelete
- a user deleting a message in Teams.Closes #4375
Description
ActivityHandlerBase
to handleMessageUpdate
andMessageDelete
activity typesActivityHandler
to handleMessageUpdate
andMessageDelete
activity types and dispatch functions for subtypes.TeamsActivityHandler
to handleMessageUpdate
(with subtypesTeamsMessageEdit
andTeamsMessageUndelete
) andMessageDelete
(with subtypeTeamsMessageSoftDelete
) teams events.Specific Changes
yarn build:rollup
on both thebotbuilder
andbotbuilder-core
libraries to generate public api doc.ActivityHandlerBase class
MessageUpdate
andMessageDelete
onMessageUpdateActivity
andonMessageDeleteActivity
methodsMessage
activity event.ActivityHandler class
onMessageUpdate
andonMessageDelete
onMessageUpdateActivity
andonMessageDeleteActivity
to mirroronConversationUpdateActivity
dispatchMessageUpdateAcitivty
anddispatchMessageDeleteActivity
. They conform to existing convention (ex.onConversationUpdateActivity
).TeamsActivityHandler class
dispatchMessageUpdateActivity
to handle subtypesonTeamsMessageEdit
&onTeamsMessageUndelete
.dispatchMessageDeleteActivity
to handle subtypesonTeamsSoftDelete
.onTeamsMessageEditEvent
,onTeamsMessageUndeleteEvent
andonTeamsMessageSoftDeleteEvent
.onTeamsMessageEdit
,onTeamsMessageUndelete
andonTeamsMessageSoftDelete
that are dispatched by the respective dispatch methods.Testing