Values for the event.
Content of the event.
Optional
eventOptional event_id
for the event. If provided will be used as event ID; else an ID is generated.
Room ID of the event.
The sender of the event.
Optional
stateOptional state_key
for the event. If unspecified, a non-state event is created.
Optional
ts?: numberOptional origin_server_ts
for the event. If unspecified, the timestamp will be set to 0.
The type of the event.
Optional
unsigned?: IUnsignedOptional unsigned
data for the event.
Create a MatrixEvent.