SaveRestrictedContentBot icon indicating copy to clipboard operation
SaveRestrictedContentBot copied to clipboard

SyntaxError: invalid syntax

Open aldev814 opened this issue 2 years ago • 3 comments

I've deployed by docker, and had error below:

srcbot | starting Bot ~@DroneBots srcbot | Traceback (most recent call last): srcbot | File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main srcbot | return _run_code(code, main_globals, None, srcbot | File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code srcbot | exec(code, run_globals) srcbot | File "/app/main/main.py", line 16, in srcbot | load_plugins(plugin_name.replace(".py", "")) srcbot | File "/app/main/utils.py", line 12, in load_plugins srcbot | spec.loader.exec_module(load) srcbot | File "", line 786, in exec_module srcbot | File "", line 923, in get_code srcbot | File "", line 853, in source_to_code srcbot | File "", line 228, in _call_with_frames_removed srcbot | File "main/plugins/pyroplug.py", line 209 srcbot | await client.copy_message(sender, chat, msg_id) srcbot | ^ srcbot | SyntaxError: invalid syntax srcbot exited with code 1

What's going on here?

aldev814 avatar Nov 02 '23 04:11 aldev814

When I reset to commit b1261427a682058bac5082fab1a5508a78b1bf0f, it works. What's wrong with the newest version?

aldev814 avatar Nov 02 '23 04:11 aldev814

same problem with new code.

PalashMudi avatar Nov 02 '23 07:11 PalashMudi

Add a tab indent before "await client.copy_message(sender, chat, msg_id)". (A4PGT$XRR`}B09I~F85$ 0

LDQONJ avatar Nov 03 '23 07:11 LDQONJ