Getting error while running the code

File “bot_webhook.py”, line 17
@app.route(f’/{TOKEN}’, methods=[‘GET’,‘POST’])
^
SyntaxError: invalid syntax

I am unable to resolve my doubt

Can you please share a screenshot of your code

There should be no blank line between the decorator and the function it is being used for . So remove the blank line .(i.e line 18)

Yes I have seen your code and I have replied to your doubt above . The issue issue is that there cannot be any blank line between the function decorator and the function itself . This is present in your code , since line 17 i.e a function decorator and the function itself present in line 19 has a blank line between them . So kindly remove that blank line .