Bump mautrix-python and send m.bridge events

This commit is contained in:
Tulir Asokan
2020-05-05 21:40:57 +03:00
parent 80dd6fa9e1
commit 429544373a
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -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
View File
@@ -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