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’