mx_react: Send a reaction (annotation) to a room event

View source: R/messages.R

mx_reactR Documentation

Send a reaction (annotation) to a room event

Description

Posts an m.reaction event tying key (usually a thumbs-up or other emoji) to event_id. Matrix reactions are plain events under the hood; they relate to the target via m.annotation.

Usage

mx_react(session, room_id, event_id, key)

Arguments

session

An "mx_session" object.

room_id

Character. The room ID.

event_id

Character. The event being reacted to.

key

Character. The reaction key (usually an emoji).

Value

The event ID of the sent reaction.

Examples

## Not run: 
mx_react(s, "!abc:matrix.example", "$eventid", "thumbs-up")

## End(Not run)

mx.api documentation built on Sept. 12, 2026, 1:07 a.m.