matrix

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatrixChannel

type MatrixChannel struct {
	*channels.BaseChannel
	// contains filtered or unexported fields
}

MatrixChannel implements the Channel interface for Matrix.

func NewMatrixChannel

func NewMatrixChannel(cfg config.MatrixConfig, messageBus *bus.MessageBus) (*MatrixChannel, error)

func (*MatrixChannel) EditMessage

func (c *MatrixChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error

EditMessage implements channels.MessageEditor.

func (*MatrixChannel) Send

func (*MatrixChannel) SendMedia

func (c *MatrixChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error

SendMedia implements channels.MediaSender.

func (*MatrixChannel) SendPlaceholder

func (c *MatrixChannel) SendPlaceholder(ctx context.Context, chatID string) (string, error)

SendPlaceholder implements channels.PlaceholderCapable.

func (*MatrixChannel) Start

func (c *MatrixChannel) Start(ctx context.Context) error

func (*MatrixChannel) StartTyping

func (c *MatrixChannel) StartTyping(ctx context.Context, chatID string) (func(), error)

StartTyping implements channels.TypingCapable.

func (*MatrixChannel) Stop

func (c *MatrixChannel) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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