Add unix socket manhole to access bridge internals at runtime

This commit is contained in:
Tulir Asokan
2019-08-11 02:35:58 +03:00
parent 468412100c
commit b89ecf4c03
9 changed files with 110 additions and 5 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class TelegramBridge(Bridge):
def prepare_bridge(self) -> None:
self.bot = init_bot(self.config)
context = Context(self.az, self.config, self.loop, self.session_container, self.bot)
context = Context(self.az, self.config, self.loop, self.session_container, self, self.bot)
self._prepare_website(context)
self.matrix = context.mx = MatrixHandler(context)