We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6702831 commit 60e0835Copy full SHA for 60e0835
mautrix_telegram/__main__.py
@@ -100,8 +100,6 @@ def prepare_bridge(self) -> None:
100
init_portal(self.context)
101
self.add_startup_actions(init_puppet(self.context))
102
103
- if self.bot:
104
- self.add_startup_actions(self.bot.start())
105
if self.config["bridge.resend_bridge_info"]:
106
self.add_startup_actions(self.resend_bridge_info())
107
@@ -112,6 +110,12 @@ def prepare_bridge(self) -> None:
112
110
async def start(self) -> None:
113
111
await super().start()
114
+ if self.bot:
+ try:
115
+ await self.bot.start()
116
+ except Exception as e:
117
+ self.log.error(f"Failed to start bot: {e}")
118
+
119
semaphore = None
120
concurrency = self.config['telegram.connection.concurrent_connections_startup']
121
if concurrency:
0 commit comments