HTTP 403 · Forbidden
HTTP 403 Permissions / Forbidden

When & why it happens

The current user is not allowed to perform this action on the targeted edit bot invite (permission or privacy restriction).

Handling in gogram

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

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