What is usually called a chat, a channel, a conversation or a group chat on other platforms, the term used in Matrix is a "room". A room is a conversation where a group of users talk to each other.
Get a list of the most recent events sent in the room.
Get a room's room id. This is an opaque string that distinguishes rooms from each other.
This module exposes various functions that help you inspect various aspects of a room.
Account data is personal information that the user stores about this Matrix room. This may include information like:
You may consider the account data as a Dict String Json.Value type. Account
data is linked to the user account: other logged in devices can see the account
data too, as the server synchronizes it, but the server shouldn´t show it to
other users.
Get a piece of account data linked to a certain string key.
Set account data to a Matrix room.
Besides reading the latest events, one can also send new events to the Matrix
room. These events are JSON objects that can be shaped in any way or form that
you like. To help other users with decoding your JSON objects, you pass an
eventType string which helps them figure out the nature of your JSON object.
Send a message event to a given room.
Send a state event to a given room.
Invite a user to a room.
Kick a user from a room.
Ban a user from a room.
The Matrix Room type representing a room that the Matrix user has joined.