Documentation
¶
Index ¶
- type MatrixChannel
- func (c *MatrixChannel) ClearToolFeedbackMessage(chatID string)
- func (c *MatrixChannel) DeleteMessage(ctx context.Context, chatID string, messageID string) error
- func (c *MatrixChannel) DismissToolFeedbackMessage(ctx context.Context, chatID string)
- func (c *MatrixChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error
- func (c *MatrixChannel) FinalizeToolFeedbackMessage(ctx context.Context, msg bus.OutboundMessage) ([]string, bool)
- func (c *MatrixChannel) RecordToolFeedbackMessage(chatID, messageID, content string)
- func (c *MatrixChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)
- func (c *MatrixChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)
- func (c *MatrixChannel) SendPlaceholder(ctx context.Context, chatID string) (string, error)
- func (c *MatrixChannel) Start(ctx context.Context) error
- func (c *MatrixChannel) StartTyping(ctx context.Context, chatID string) (func(), error)
- func (c *MatrixChannel) Stop(ctx context.Context) error
- func (c *MatrixChannel) VoiceCapabilities() channels.VoiceCapabilities
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) ClearToolFeedbackMessage ¶ added in v0.2.8
func (c *MatrixChannel) ClearToolFeedbackMessage(chatID string)
func (*MatrixChannel) DeleteMessage ¶ added in v0.2.8
DeleteMessage implements channels.MessageDeleter.
func (*MatrixChannel) DismissToolFeedbackMessage ¶ added in v0.2.8
func (c *MatrixChannel) DismissToolFeedbackMessage(ctx context.Context, chatID string)
func (*MatrixChannel) EditMessage ¶
func (c *MatrixChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error
EditMessage implements channels.MessageEditor.
func (*MatrixChannel) FinalizeToolFeedbackMessage ¶ added in v0.2.8
func (c *MatrixChannel) FinalizeToolFeedbackMessage(ctx context.Context, msg bus.OutboundMessage) ([]string, bool)
func (*MatrixChannel) RecordToolFeedbackMessage ¶ added in v0.2.8
func (c *MatrixChannel) RecordToolFeedbackMessage(chatID, messageID, content string)
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 ¶
SendPlaceholder implements channels.PlaceholderCapable.
func (*MatrixChannel) StartTyping ¶
func (c *MatrixChannel) StartTyping(ctx context.Context, chatID string) (func(), error)
StartTyping implements channels.TypingCapable.
func (*MatrixChannel) VoiceCapabilities ¶ added in v0.2.5
func (c *MatrixChannel) VoiceCapabilities() channels.VoiceCapabilities
VoiceCapabilities returns the voice capabilities of the channel.
Click to show internal directories.
Click to hide internal directories.