HTTP 403 · Forbidden
HTTP 403 Permissions / Forbidden

When & why it happens

The user is muted or banned from posting in this chat (e.g. send_messages right disabled or restricted by an admin).

Handling in gogram

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

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