2019-07-19 15:52:03 +00:00
|
|
|
package sendmessage
|
|
|
|
|
|
|
|
import (
|
2019-08-03 14:19:18 +00:00
|
|
|
common "github.com/signaller-matrix/signaller/internal/models/common"
|
2019-07-19 15:52:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type SendMessageRequest struct {
|
|
|
|
Body string `json:"body"` // Required. The textual representation of this message.
|
|
|
|
MessageType common.MessageType `json:"msgtype"` // Required. The type of message, e.g. m.image, m.text
|
|
|
|
RelatesTo MRelatesTo `json:"m.relates_to,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MRelatesTo struct {
|
|
|
|
InReplyTo MInReplyTo `json:"m.in_reply_to"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MInReplyTo struct {
|
|
|
|
EventID string `json:"event_id"`
|
|
|
|
}
|