pip install pyTelegramBotAPI==4.16.0
или ещё ниже (История выпусков) from flask import jsonify
@app.route("/api/user_projects/<student_email>", methods=["GET", "POST"])
def get_projects_names_by_student_email(student_email):
a = cabinet_client.get_projects_names_by_student_email(student_email)
return jsonify(a)
@app.route("/api/user_projects/<student_email>", methods=["GET", "POST"])
def get_projects_names_by_student_email(student_email):
a = cabinet_client.get_projects_names_by_student_email(student_email)
return json.dumps(a)
import requests
respounse = requests.post('домен/api/user_projects/{почта}').json()
print(respounse)