event

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractHtmlRepresentations added in v1.7.0

func ExtractHtmlRepresentations(event gomatrixserverlib.PDU) ([]string, error)

ExtractHtmlRepresentations extracts all HTML representations from a Matrix event. **Note**: This doesn't currently process extensible events, but in future when it does it may return more than one HTML representation. Callers should not assume that this only ever returns zero or one HTML representation. Returns nil if the event has no HTML representations.

func RenderToText

func RenderToText(event gomatrixserverlib.PDU) ([]string, error)

Types

type MessageEventContent

type MessageEventContent struct {
	Body          string `json:"body"`
	Msgtype       string `json:"msgtype"`
	FormattedBody string `json:"formatted_body"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL