diff --git a/bot/bot.py b/bot/bot.py index 033639774..3e0285bc8 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -329,6 +329,10 @@ async def fake_gen(): return async def unsupport_message_handle(update: Update, context: CallbackContext, message=None): + # check if bot was mentioned (for group chats) + if not await is_bot_mentioned(update, context): + return + error_text = f"I don't know how to read files or videos. Send the picture in normal mode (Quick Mode)." logger.error(error_text) await update.message.reply_text(error_text) @@ -869,4 +873,4 @@ def run_bot() -> None: if __name__ == "__main__": - run_bot() \ No newline at end of file + run_bot()