Skip to content

Commit

Permalink
Teams activity handler documentation fix (#4407)
Browse files Browse the repository at this point in the history
Added remarks for usage of `Message Update` and `Message Delete` events
  • Loading branch information
singhk97 authored Jan 31, 2023
1 parent 79b1153 commit 3a94b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/botbuilder/src/teamsActivityHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ const TeamsMeetingEndT = z
* Adds support for Microsoft Teams specific events and interactions.
*
* @remarks
* Developers may handle Conversation Update activities sent from Microsoft Teams via two methods:
* Developers may handle Message Update, Message Delete, and Conversation Update activities sent from Microsoft Teams via two methods:
* 1. Overriding methods starting with `on..` and *not* ending in `..Event()` (e.g. `onTeamsMembersAdded()`), or instead
* 2. Passing callbacks to methods starting with `on..` *and* ending in `...Event()` (e.g. `onTeamsMembersAddedEvent()`),
* to stay in line with older {@see ActivityHandler} implementation.
*
* Developers should use either #1 or #2, above for all Conversation Update activities and not *both* #2 and #3 for the same activity. Meaning,
* Developers should use either #1 or #2, above for all Message Update, Message Delete, and Conversation Update activities and not *both* #1 and #2 for the same activity. Meaning,
* developers should override `onTeamsMembersAdded()` and not use both `onTeamsMembersAdded()` and `onTeamsMembersAddedEvent()`.
*
* Developers wanting to handle Invoke activities *must* override methods starting with `handle...()` (e.g. `handleTeamsTaskModuleFetch()`).
Expand Down

0 comments on commit 3a94b5c

Please sign in to comment.