The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -382,6 +382,10 @@ log(f"User {target} has blocked the bot. Skipping.") return None except Exception as exc: + err_str = str(exc).lower() + if "timeout" in err_str or "connection" in err_str or "socket" in err_str: + log(f"Pyrogram send_message to {target} raised network error ({exc}). Skipping fallback to prevent duplicate.") + return None log(f"Pyrogram send_message to {target} failed: {exc}. Trying HTTP Bot API fallback...") if self.http and self.bot_token: try: [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.