Documentation
¶
Index ¶
- type MatrixChannel
- func (c *MatrixChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error
- func (c *MatrixChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
- func (c *MatrixChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) 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
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 (c *MatrixChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
func (*MatrixChannel) SendMedia ¶
func (c *MatrixChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) 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.
Click to show internal directories.
Click to hide internal directories.