HTTP 403 · Forbidden
HTTP 403 Channels & Chats

When & why it happens

Channel/supergroup not available. 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 == "CHANNEL_PUBLIC_GROUP_NA" { // handle this error } }