HTTP 403 · Forbidden
HTTP 403 Users & Peers

When & why it happens

The target user is not a participant of this chat/channel, so the requested per-member action cannot be performed.

Handling in gogram

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

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