Planner-AI is a study mentoring project that implements ChatGPT integration in Telegram via Bots. It includes several new functions that were not available on ChatGPT, such as messages classification and accepting audio messages from users.
Retrieval of each of those pages returns render or programmed output as a result of some view' execution.
Pre-step:
[x] Create branch from MIG from the issue. If you don't know how to - ask.
First task. Implement GET method to retrieve history of messages.
Go to website/views.py -> get_messages()
[x] Implement messages retrieval.
[x] Include case when there are no messages for the user - return blank list.
[x] Ask my chat ID for tests
Second task. Implement POST method to insert message for the user (when the user presses button 'submit' it will be invoked).
Go to website/views.py -> insert_message()
[x] Proceed with ToDo's from the code. In case of doubts write as you think it should be done.
[x] Bonus validate if it actually works by converting it to get method and retrieving http://127.0.0.1:8000/api/messages/ with some sample user_id and the message in the code.
[x] When everything is done ask me to verify
[x] Don't forget to commit when you do. Normally, you should do git-commit at least every 2-4 hours of your work or at each stage of the functionality implementation.
[x] After everything is done, create a Pull Request into MIG and ask me to check.
Нам нужно создать аналог чат-бота. В то время как Дима делает фронтенд, ты будешь делать бекенд для выдачи данных для коммуникации с фронтендом.
Ты будешь работать с website/views.py. Check there for ToDo's. You will need to fix them all in order to complete this task.
Firstly, launch the web server. It will allow you to see what we have. Available configured urls include at least (see vercel_app/urls.py):
Retrieval of each of those pages returns render or programmed output as a result of some view' execution.
Pre-step:
First task. Implement GET method to retrieve history of messages. Go to website/views.py -> get_messages()
Second task. Implement POST method to insert message for the user (when the user presses button 'submit' it will be invoked). Go to website/views.py -> insert_message()