SaveRestrictedContentBot icon indicating copy to clipboard operation
SaveRestrictedContentBot copied to clipboard

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

Open haoduck opened this issue 2 years ago • 1 comments

haoduck avatar Jun 17 '23 14:06 haoduck

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

fexli avatar Jun 22 '23 14:06 fexli