fix: undefined variable _id in unarchive_chat function
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 <noreply@anthropic.com>
This commit is contained in:
parent
994a49faba
commit
62a3fd68be
1 changed files with 1 additions and 1 deletions
2
main.py
2
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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue