0
0
mirror of https://github.com/thegeeklab/wp-matrix.git synced 2024-11-13 23:50:39 +00:00
wp-matrix/matrix/api.go

15 lines
345 B
Go

package matrix
import (
"context"
"maunium.net/go/mautrix"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/id"
)
//nolint:lll
type APIClient interface {
SendMessageEvent(ctx context.Context, roomID id.RoomID, eventType event.Type, contentJSON interface{}, extra ...mautrix.ReqSendEvent) (resp *mautrix.RespSendEvent, err error)
}