@app.route(‘/mybot’,method=[‘POST’]) AttributeError: ‘str’ object has no attribute ‘route’

Solution
app = (__name__)
app = Flask(__name__)