HTTP 400 · Bad Request
HTTP 400 Polls & Quizzes

When & why it happens

Poll/quiz state precondition failed — usually the poll is closed, the choice is malformed, or the user already voted.

Handling in gogram

Surfaced as *gogram.ErrResponseCode. Match on the message:

if err, ok := err.(*gogram.ErrResponseCode); ok { if err.Message == "POLL_VOTE_REQUIRED" { // handle this error } }