2015-09-23 11:48:49 +02:00
|
|
|
Instant Messaging
|
|
|
|
|
=================
|
|
|
|
|
|
2015-09-25 16:09:15 +02:00
|
|
|
.. _module:im:
|
|
|
|
|
|
2015-10-02 16:03:55 +02:00
|
|
|
This module adds support for sending human-readable messages to a room. It also
|
|
|
|
|
adds human-readable information to the room itself such as a room name and topic.
|
|
|
|
|
|
2015-09-23 11:48:49 +02:00
|
|
|
Events
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
{{m_room_message_event}}
|
|
|
|
|
|
|
|
|
|
{{m_room_message_feedback_event}}
|
|
|
|
|
|
|
|
|
|
{{m_room_name_event}}
|
|
|
|
|
|
|
|
|
|
{{m_room_topic_event}}
|
|
|
|
|
|
|
|
|
|
m.room.message msgtypes
|
2015-10-02 16:03:55 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
2015-09-23 11:48:49 +02:00
|
|
|
|
|
|
|
|
.. TODO-spec
|
|
|
|
|
How a client should handle unknown message types.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Each `m.room.message`_ MUST have a ``msgtype`` key which identifies the type
|
|
|
|
|
of message being sent. Each type has their own required and optional keys, as
|
|
|
|
|
outlined below.
|
|
|
|
|
|
|
|
|
|
{{msgtype_events}}
|
|
|
|
|
|
2015-10-02 16:03:55 +02:00
|
|
|
|
|
|
|
|
Client behaviour
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Server behaviour
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Security considerations
|
|
|
|
|
-----------------------
|
|
|
|
|
|