Chats
Manage chats
Retrieve chat details
Archive or unarchive a chat
Mark a chat as read
Mark a chat as unread
ModelsExpand Collapse
class Chat: …
participants: ParticipantsChat participants information.
Chat participants information.
capabilities: Optional[Capabilities]Chat capabilities reported by the platform.
Chat capabilities reported by the platform.
Allowed Unicode reactions. Omitted means all emoji reactions are allowed.
attachments: Optional[Dict[str, CapabilitiesAttachments]]Supported attachment message types and their per-type constraints, keyed by Matrix msgtype or pseudo-msgtype (for example m.image, m.video, org.matrix.msc3245.voice). Missing message types should be treated as rejected.
Supported attachment message types and their per-type constraints, keyed by Matrix msgtype or pseudo-msgtype (for example m.image, m.video, org.matrix.msc3245.voice). Missing message types should be treated as rejected.
delete: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
True if deleting messages only for the authenticated user is supported.
disappearing_timer: Optional[CapabilitiesDisappearingTimer]Disappearing-message timer capabilities.
Disappearing-message timer capabilities.
edit: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
formatting: Optional[Dict[str, Literal[-2, -1, 0, 2 more]]]Supported rich-text formatting features keyed by feature name (for example bold, inline_code, code_block.syntax_highlighting). Omitted means no formatting support is advertised.
Supported rich-text formatting features keyed by feature name (for example bold, inline_code, code_block.syntax_highlighting). Omitted means no formatting support is advertised.
location_message: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
message_request: Optional[CapabilitiesMessageRequest]Message request capabilities.
Message request capabilities.
participant_actions: Optional[CapabilitiesParticipantActions]Participant management capabilities.
Participant management capabilities.
ban: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
invite: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
kick: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
poll: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
reaction: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
reply: Optional[Literal[-2, -1, 0, 2 more]]-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
state: Optional[CapabilitiesState]Chat state update capabilities.
Chat state update capabilities.
draft: Optional[Draft]Current draft object for this chat, or null when no draft is set.
Current draft object for this chat, or null when no draft is set.
True if the chat was explicitly marked unread by the authenticated user.
class ChatListResponse: …Chat with optional last message preview.
Chat with optional last message preview.
preview: Optional[Message]Last message preview for this chat, if available.
Last message preview for this chat, if available.
Chat ID. Input routes also accept the local chat ID from this installation when available.
Fully qualified sender user ID. Network-backed IDs usually include the network prefix and homeserver.
Attachments included with this message, if any.
Attachments included with this message, if any.
Attachment identifier, typically an mxc:// URL. Use the download file endpoint to get a local file path.
Preview image URL for video attachments (poster frame). May be temporary or available only on this device; download promptly if durable access is needed.
links: Optional[List[Link]]Link previews included with this message, if any.
Link previews included with this message, if any.
Favicon URL if available. May be temporary or available only on this device; download promptly if durable access is needed.
Preview image URL if available. May be temporary or available only on this device; download promptly if durable access is needed.
Mentioned user IDs, @room, or null for legacy messages that require text scanning.
Reactions to the message, if any.
Reactions to the message, if any.
seen: Optional[Union[bool, datetime, Dict[str, Union[bool, datetime]], null]]Read receipt state for this message, when available.
Read receipt state for this message, when available.
send_status: Optional[SendStatus]Message send status for this message, when reported by the bridge.
Message send status for this message, when reported by the bridge.
status: Literal["SUCCESS", "PENDING", "FAIL_RETRIABLE", "FAIL_PERMANENT"]Current status of the message send attempt.
Current status of the message send attempt.
User IDs the message was delivered to, when reported by the network.
ChatsReminders
Manage reminders for chats
Create a chat reminder
ChatsMessages
Manage chat messages
ChatsMessagesReactions
Manage message reactions