| mx_send_to_device | R Documentation |
PUT /_matrix/client/v3/sendToDevice/{eventType}/{txnId}.
Used to ship encrypted Olm payloads (e.g. m.room_key carriers
wrapped as m.room.encrypted) to specific
(user_id, device_id) targets.
mx_send_to_device(session, event_type, messages, txn_id = NULL)
session |
An |
event_type |
Character. The to-device event type, e.g.
|
messages |
Named list. Outer names are user ids; values are
named lists mapping device id (or the wildcard |
txn_id |
Character or NULL. Idempotency key; auto-generated when NULL. |
Invisible NULL (the server returns an empty body on success).
## Not run:
mx_send_to_device(s, "m.room.encrypted", list(
"@bob:example.org" = list(BBBB = encrypted_content)
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.