Fix BtcOffersBot._on_stop_btc_offers_notification (private or mentioned)
This commit is contained in:
@@ -254,6 +254,9 @@ class BtcOffersBot(MultiBot, ABC):
|
|||||||
asyncio.create_task(self.start_all_btc_offers_notifications())
|
asyncio.create_task(self.start_all_btc_offers_notifications())
|
||||||
|
|
||||||
async def _on_stop_btc_offers_notification(self, message: Message):
|
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
|
previous_btc_offers_query = message.chat.btc_offers_query
|
||||||
|
|
||||||
await self.stop_btc_offers_notification(message.chat)
|
await self.stop_btc_offers_notification(message.chat)
|
||||||
|
|||||||
Reference in New Issue
Block a user