fictadvisor / fictadvisor-bot

Telegram bot for fictadvisor.com
11 stars 0 forks source link

Research on poll through Telegram Bot #137

Open hoshion opened 8 months ago

hoshion commented 8 months ago

We need to create an ability to take surveys in DM messages as in browser version of FICT Advisor.

The functionality of polls:

The task is to research back-end application of FA with the purpose to find endpoints or tables in database that is necessary for proper work of poll in telegram but missing. You need to describe:

Be very accurate and responsible for what you write. Check twice all that you found and described to find mistakes and fix it in time

sokolovgit commented 8 months ago

To implement the described functionality, we would need endpoints:

Endpoint 1: /v2/poll/teachers/{userId} Add Telegram Guard

Endpoint 2: /v2/disciplineTeachers/{disciplineTeacherId}/questions Add Telegram Guard

Endpoint 3: /v2/disciplineTeachers/{disciplineTeacherId}/answers Need same endpoint with userId in body

{
  "userId" : "string", 
  "answers": [
    {
      "questionId": "string",
      "value": "string"    
    }
  ]
}