matrix

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 28 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(
	bc *config.Channel,
	cfg *config.MatrixSettings,
	messageBus *bus.MessageBus,
	cryptoDatabasePath string,
) (*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 (c *MatrixChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)

func (*MatrixChannel) SendMedia

func (c *MatrixChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, 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

func (*MatrixChannel) VoiceCapabilities added in v0.2.5

func (c *MatrixChannel) VoiceCapabilities() channels.VoiceCapabilities

VoiceCapabilities returns the voice capabilities of the channel.

Jump to

Keyboard shortcuts

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