Add Matrix->WhatsApp EDU bridging

This commit is contained in:
Tulir Asokan
2019-05-27 13:46:04 +03:00
parent 5346e01d2a
commit bfe5af7edc
5 changed files with 114 additions and 30 deletions

View File

@ -23,20 +23,12 @@ import (
"github.com/Rhymen/go-whatsapp"
)
type PresenceType string
const (
PresenceUnavailable PresenceType = "unavailable"
PresenceAvailable PresenceType = "available"
PresenceComposing PresenceType = "composing"
)
type Presence struct {
JID string `json:"id"`
SenderJID string `json:"participant"`
Status PresenceType `json:"type"`
Timestamp int64 `json:"t"`
Deny bool `json:"deny"`
JID string `json:"id"`
SenderJID string `json:"participant"`
Status whatsapp.Presence `json:"type"`
Timestamp int64 `json:"t"`
Deny bool `json:"deny"`
}
type PresenceHandler interface {