fictadvisor / fictadvisor-bot

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

Add class for interaction with Response API #38

Closed Kulunchick closed 1 year ago

Kulunchick commented 1 year ago

Need to create class for interaction with Response API

1. Handler for verify response

POST /disciplineTeachers/${id}/responses

Authorization

Telegram <Bot Token>

Request options

{  
  params: {
    disciplineTeacherId: string,
  },
  body: {
    answers: {
      questionId: string,
      value: string,
      userId: string,
    },
  },
}

Response body

{
  disciplineTeacherId: string, 
  questionId: string, 
  userId: string, 
  value: string,
}