HTTP 400 · Bad Request
HTTP 400 Stories

When & why it happens

The account hit its weekly story-posting cap. Wait the supplied seconds — usually a fresh quota arrives at the start of the next week.

Handling in gogram

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

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