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.
Capabilities ChatCapabilitiesOptionalChat capabilities reported by the platform.
Chat capabilities reported by the platform.
Allowed Unicode reactions. Omitted means all emoji reactions are allowed.
Attachments map[string, ChatCapabilitiesAttachment]OptionalSupported 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.
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.
State ChatCapabilitiesStateOptionalChat state update capabilities.
Chat state update capabilities.
Avatar ChatCapabilitiesStateAvatarOptionalChat avatar state capability.
Chat avatar state capability.
Description ChatCapabilitiesStateDescriptionOptionalChat description/topic state capability.
Chat description/topic state capability.
DisappearingTimer ChatCapabilitiesStateDisappearingTimerOptionalDisappearing-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.
Draft ChatDraftOptionalCurrent 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.
ChatsReminders
Manage reminders for chats
Create a chat reminder
Delete a chat reminder
ChatsMessages
Manage chat messages
ChatsMessagesReactions
Manage message reactions