ventureoo / jabagram

Fully functional bridge between Telegram and XMPP
GNU General Public License v3.0
12 stars 1 forks source link

Syntax error #5

Closed n4ch0m4n closed 2 days ago

n4ch0m4n commented 5 days ago

This error:

File "/home/me/Bots/jabagram/jabagram/telegram.py", line 155 params["text"] = f"{formatted_reply}\n{ ^ SyntaxError: unterminated string literal (detected at line 155)

notice that in line 155, 220, 258 and 496 there are line jumps that when running the script makes mistake.

for example in line 155 the solution instead of:

params["text"] = f"{formtted_reply}\n{ message.sender}: {message.content}"

should go:

params["text"] = f"{formatted_reply}\n{ message.sender}: message.content}"

ventureoo commented 4 days ago

Sorry, but I can't reproduce it. In addition these hyphenations were done by autopep8. What version of Python are you using?

n4ch0m4n commented 4 days ago

Sorry, but I can't reproduce it. In addition these hyphenations were done by autopep8. What version of Python are you using?

python3.10 and 3.11, the same error 10 y 11

ventureoo commented 4 days ago

Does commit https://github.com/ventureoo/jabagram/commit/592205d8cfc07a584a438c89638047815f0a84a9 fixes it for you?

n4ch0m4n commented 2 days ago

Does commit 592205d fixes it for you?

yeap! perfect! thanks!