HTTP 403 · Forbidden
CHANNEL_PUBLIC_GROUP_NA
Channel/supergroup not available.
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
}
}
Related errors
BROADCAST_CALLS_DISABLEDBroadcast calls are disabled for this chat/channel.BROADCAST_ID_INVALIDBroadcast ID invalid.BROADCAST_REQUIREDThis method can only be called on a channel.CHANNEL_ADD_INVALIDThe specified channel is invalid.CHANNEL_FORUM_MISSINGThis supergroup is not a forum.CHANNEL_ID_INVALIDThe specified supergroup ID is invalid.CHANNEL_INVALIDThe provided channel is invalid.CHANNEL_PARTICIPANT_MISSINGThe current user is not in the channel.CHANNEL_PRIVATEYou haven't joined this channel/supergroup.CHANNEL_TOO_BIGThis channel has too many participants (>1000) to be deleted.CHANNEL_TOO_LARGEChannel is too large to be deleted.CHAT_ABOUT_NOT_MODIFIEDAbout text has not changed.