From e12f1784e2c1dc6a17bb56c4bf6b3849157cd867 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 7 May 2023 17:39:25 +0300 Subject: [PATCH] Only handle /start in private chats --- mautrix_telegram/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/bot.py b/mautrix_telegram/bot.py index 6cb6da30..7e65048f 100644 --- a/mautrix_telegram/bot.py +++ b/mautrix_telegram/bot.py @@ -395,7 +395,7 @@ class Bot(AbstractUser): def reply(reply_text: str) -> Awaitable[Message]: return self.client.send_message(message.chat_id, reply_text, reply_to=message.id) - if command == "start": + if command == "start" and message.is_private: pcm = self.config["bridge.relaybot.private_chat.message"] if pcm: await reply(pcm)