Bump mautrix-python and send m.bridge events
This commit is contained in:
@@ -310,6 +310,21 @@ class PortalMetadata(BasePortal, ABC):
|
||||
initial_state = [{
|
||||
"type": EventType.ROOM_POWER_LEVELS.serialize(),
|
||||
"content": power_levels.serialize(),
|
||||
}, {
|
||||
"type": "m.bridge",
|
||||
"state_key": f"net.maunium.telegram://telegram/{self.tgid}",
|
||||
"content": {
|
||||
"bridgebot": self.az.bot_mxid,
|
||||
"creator": self.main_intent.mxid,
|
||||
"protocol": {
|
||||
"id": "telegram",
|
||||
"displayname": "Telegram",
|
||||
"avatar_url": config["appservice.bot_avatar"],
|
||||
},
|
||||
"channel": {
|
||||
"id": self.tgid
|
||||
}
|
||||
}
|
||||
}]
|
||||
if config["bridge.encryption.default"] and self.matrix.e2ee:
|
||||
self.encrypted = True
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ ruamel.yaml>=0.15.35,<0.17
|
||||
python-magic>=0.4,<0.5
|
||||
commonmark>=0.8,<0.10
|
||||
aiohttp>=3,<4
|
||||
mautrix==0.5.0.beta13
|
||||
mautrix==0.5.0.beta15
|
||||
telethon>=1.13,<1.14
|
||||
telethon-session-sqlalchemy>=0.2.14,<0.3
|
||||
|
||||
Reference in New Issue
Block a user