Add option to filter telegram chats from being bridged. Fixes #41

This commit is contained in:
Tulir Asokan
2018-05-19 19:34:35 +03:00
parent 1f5261ff8f
commit 7a373fa556
6 changed files with 123 additions and 3 deletions
+3
View File
@@ -145,6 +145,9 @@ class Bot(AbstractUser):
if not config["bridge.relaybot.authless_portals"]:
return await reply("This bridge doesn't allow portal creation from Telegram.")
if not portal.allow_bridging():
return await reply("This bridge doesn't allow bridging this chat.")
await portal.create_matrix_room(self)
if portal.mxid:
if portal.username: