Chats
Manage chats
Archive or unarchive a chat
Mark a chat as read
Mark a chat as unread
Notify anyway
ModelsExpand Collapse
type Chat struct{…}
Participants ChatParticipantsChat participants information.
Chat participants information.
Chat capabilities reported by the platform.
Chat capabilities reported by the platform.
Allowed Unicode reactions. Omitted means all emoji reactions are allowed.
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 int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
DisappearingTimer ChatCapabilitiesDisappearingTimerOptionalDisappearing-message timer capabilities.
Disappearing-message timer capabilities.
Allowed disappearing timer values in milliseconds. Omitted means any timer is allowed.
Types []stringOptionalSupported disappearing timer types.
Supported disappearing timer types.
Edit int64Optional-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 map[string, int64]OptionalSupported 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.
LocationMessage int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
MessageRequest ChatCapabilitiesMessageRequestOptionalMessage request capabilities.
Message request capabilities.
AcceptWithButton int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
AcceptWithMessage int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
ParticipantActions ChatCapabilitiesParticipantActionsOptionalParticipant management capabilities.
Participant management capabilities.
Ban int64Optional-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 int64Optional-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 int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
Leave int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
RevokeInvite int64Optional-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 int64Optional-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 int64Optional-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 int64Optional-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
Chat state update capabilities.
Chat state update capabilities.
Avatar ChatStateCapabilitiesAvatarOptionalChat avatar state capability.
Chat avatar state capability.
Description ChatStateCapabilitiesDescriptionOptionalChat description/topic state capability.
Chat description/topic state capability.
DisappearingTimer ChatStateCapabilitiesDisappearingTimerOptionalDisappearing-message timer state capability.
Disappearing-message timer state capability.
Level int64-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
-2: rejected, -1: dropped, 0: unsupported, 1: partially supported, 2: fully supported.
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.
Labels applied to this chat. Absent when the chat has none, or when labels are not enabled for this user.
Labels applied to this chat. Absent when the chat has none, or when labels are not enabled for this user.
Merge ChatMergeOptionalPresent when this chat is a merged chat: one person whose conversations across networks (or across accounts on the same network) are grouped into a single chat. A merged chat holds no messages of its own - read messages from the member chats, and send either to a member directly or to the merged chat ID to route automatically.
Present when this chat is a merged chat: one person whose conversations across networks (or across accounts on the same network) are grouped into a single chat. A merged chat holds no messages of its own - read messages from the member chats, and send either to a member directly or to the merged chat ID to route automatically.
When this chat is a member of a merged chat, the ID of that merged chat. Clients that render merged chats as one conversation should list the merged chat and hide chats carrying this field.
ChatsReminders
Manage reminders for chats
Create a chat reminder
Delete a chat reminder
ChatsMessages
Manage chat messages
ChatsMessagesReactions
Manage message reactions