except Exception as e: logger.error(f"Recording error for camera['name']: e") await update.message.reply_text(f"❌ camera['name']: Recording error")
🤖
# Check if motion detected current_time = asyncio.get_event_loop().time() if motion_percentage > self.motion_threshold and (current_time - last_motion_time) > cooldown_seconds: last_motion_time = current_time
Join Our IPCam Discussion Group!