Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot access local variable 'msg' where it is not associated with a value #99

Open
haoduck opened this issue Jun 17, 2023 · 1 comment

Comments

@haoduck
Copy link

haoduck commented Jun 17, 2023

No description provided.

@fexli
Copy link

fexli commented Jun 22, 2023

add the following code:

msg = await userbot.get_messages(chat, msg_id)

after

    if 't.me/c/' in msg_link: #...
    else:  
        edit = await client.edit_message_text(sender, edit_id, "Cloning.")  
        chat = msg_link.split("/")[-2]  
        # <add to here>  <<<
        try: # ...  

in main/plugins/pyroplug.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants