edits: bridge TG -> Matrix
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user