Message Reaction
Message reaction activities represent a social interaction on an existing message activity within a conversation. The original activity is referred to by the id
and conversation
fields within the activity. The from
field represents the source of the reaction (i.e., the user that reacted to the message).
app.on('messageReaction', async ({ activity }) => {});
Schema
Message reaction activities are identified by a type
value of messageReaction
.
Reactions added
The reactionsAdded
field contains a list of reactions added to this activity. The value of the reactionsAdded
field is an array of type messageReaction
.
Reactions removed
The reactionsRemoved
field contains a list of reactions removed from this activity. The value of the reactionsRemoved
field is an array of type messageReaction
.
Message reaction usage in Teams
Message reactions can be used to express a variety of social interactions on messages sent in Teams chat. By hovering over a message, you can see the available reactions for that message.
To react to a message, click the reaction you want to use. This will add the reaction to the message.