Skip to content

Commit

Permalink
Only handle /start in private chats
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 7, 2023
1 parent 6b8e265 commit e12f178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ async def handle_command(self, message: Message, command: str, args: str) -> Non
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)
Expand Down

0 comments on commit e12f178

Please sign in to comment.