| mx_messages | R Documentation |
Thin wrapper over the /rooms/{id}/messages endpoint.
mx_messages(session, room_id, from = NULL, dir = "b", limit = 50L)
session |
An "mx_session" object. |
room_id |
Character. The room ID. |
from |
Character or NULL. Pagination token; NULL starts at the most recent message. |
dir |
Character. "b" (backwards, default) or "f" (forwards). |
limit |
Integer. Maximum events to return. |
A list with fields chunk, start, end.
## Not run:
mx_messages(s, "!abc:matrix.example", limit = 20L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.