HTTP 400 · Bad Request
QUIZ_ANSWER_MISSING
You can forward a quiz while hiding the original author only after choosing an option in the quiz.
HTTP 400
Polls & Quizzes
When & why it happens
A required quiz answer was omitted from the request. Populate it and retry.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "QUIZ_ANSWER_MISSING" {
// handle this error
}
}
Related errors
POLL_ANSWERS_INVALIDInvalid poll answers were provided.POLL_ANSWER_INVALIDOne of the poll answers is not acceptable.POLL_OPTION_DUPLICATEDuplicate poll options provided.POLL_OPTION_INVALIDInvalid poll option provided.POLL_QUESTION_INVALIDOne of the poll questions is not acceptable.POLL_UNSUPPORTEDThis layer does not support polls in the issued method.POLL_VOTE_REQUIREDCast a vote in the poll before calling this method.QUIZ_CORRECT_ANSWERS_EMPTYNo correct quiz answer was specified.QUIZ_CORRECT_ANSWER_INVALIDAn invalid value was provided to the correct_answers field.QUIZ_MULTIPLE_INVALIDQuizzes can't have the multiple_choice flag set!