From 62a3fd68be187aa91b8687e773aafdfc34f5de73 Mon Sep 17 00:00:00 2001 From: Korzhavin Ivan Date: Tue, 21 Oct 2025 09:34:48 +0200 Subject: [PATCH] fix: undefined variable _id in unarchive_chat function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed undefined variable '_id' in unarchive_chat function by changing it to 'chat_id' which is the correct parameter name. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index af0ac85..5de5278 100644 --- a/main.py +++ b/main.py @@ -2471,7 +2471,7 @@ async def unarchive_chat(chat_id: Union[int, str]) -> str: try: await client( functions.messages.ToggleDialogPinRequest( - peer=await client.get_entity(_id), pinned=False + peer=await client.get_entity(chat_id), pinned=False ) ) return f"Chat {chat_id} unarchived."