SaveRestrictedContentBot
SaveRestrictedContentBot copied to clipboard
Error: cannot access local variable 'msg' where it is not associated with a value
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