T
T
timur kup2020-09-02 18:29:17
Python
timur kup, 2020-09-02 18:29:17

Error in telebot bot, can you help?

Wrote a bot in telegram. I wanted to put it on pythonanywhere.com, I downloaded everything, installed the modules, but I get an error:

File "bot.py", line 93
send_welcome = f' Hello {message.from_user.first_name}! \n\n' + razzrabotka + "\n\nFor help, use the command /cmd\n\nIf you
have an idea for a bot, or come up with a new command, write to /report [text] :)\n"

SyntaxError: invalid syntax

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
soremix, 2020-09-02
@SoreMix

Try to attach the code to the question so that people do not guess

I
Ivan Naumov, 2020-09-02
@ivan_naum

like you can't use Enter to break a line in "", unless in """ <> """

E
Elvis, 2020-09-03
@Dr_Elvis

f lines have appeared since version 3.6
, you probably have a lower version on pythonanywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question