edits: bridge TG -> Matrix

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-07-19 12:47:55 -06:00
parent 5a3b52dff2
commit 314b2da99f
9 changed files with 211 additions and 185 deletions
+9 -9
View File
@@ -78,15 +78,11 @@ func (tg *TelegramConnector) ValidateConfig() error {
func (tg *TelegramConnector) GetDBMetaTypes() database.MetaTypes {
return database.MetaTypes{
Ghost: func() any {
return &GhostMetadata{}
},
Portal: nil,
Message: nil,
Reaction: nil,
UserLogin: func() any {
return &UserLoginMetadata{}
},
Ghost: func() any { return &GhostMetadata{} },
Portal: nil,
Message: func() any { return &MessageMetadata{} },
Reaction: nil,
UserLogin: func() any { return &UserLoginMetadata{} },
}
}
@@ -95,6 +91,10 @@ type GhostMetadata struct {
AccessHash int64 `json:"access_hash"`
}
type MessageMetadata struct {
ContentHash []byte `json:"content_hash,omitempty"`
}
type UserLoginMetadata struct {
Phone string `json:"phone"`
}