Error while webhook setting

Error while setting webhook

File “bot.py”, line 20, in
def webhook():
File “C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py”, line 1315, in decorator
self.add_url_rule(rule, endpoint, f, **options)
File

“C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py”, line 98, in wrapper_func
return f(self, *args, **kwargs)
File

“C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py”, line 1275, in add_url_rule
rule = self.url_rule_class(rule, methods=methods, **options)
TypeError: init() got an unexpected keyword argument ‘method’

Hey @lgoyal50_be19, I would request you to please remove the parameter method which you are passing to function call. Then try !

I hope this clears your doubt !
Please mark the doubt as resolved in your doubts section ! :slightly_smiling_face:
Happy Learning !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.