HTTP 500 · Internal Server Error
HTTP 500 Bots & Inline

When & why it happens

A timeout occurred while fetching data from the bot. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.

Handling in gogram

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

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