Fix BtcOffersBot._on_stop_btc_offers_notification (private or mentioned)

This commit is contained in:
AlberLC
2025-04-18 00:14:04 +02:00
parent 647b9288aa
commit 789034aa9f

View File

@@ -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)