From 789034aa9fbe5980b2361586c7e7eefd82a58176 Mon Sep 17 00:00:00 2001 From: AlberLC Date: Fri, 18 Apr 2025 00:14:04 +0200 Subject: [PATCH] Fix BtcOffersBot._on_stop_btc_offers_notification (private or mentioned) --- flanabot/bots/btc_offers_bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flanabot/bots/btc_offers_bot.py b/flanabot/bots/btc_offers_bot.py index d7456ef..b7ad9a8 100644 --- a/flanabot/bots/btc_offers_bot.py +++ b/flanabot/bots/btc_offers_bot.py @@ -254,6 +254,9 @@ class BtcOffersBot(MultiBot, ABC): asyncio.create_task(self.start_all_btc_offers_notifications()) async def _on_stop_btc_offers_notification(self, message: Message): + if message.chat.is_group and not self.is_bot_mentioned(message): + return + previous_btc_offers_query = message.chat.btc_offers_query await self.stop_btc_offers_notification(message.chat)