HTTP 400 · Bad Request
USER_CHANNELS_TOO_MUCH
One of the users you tried to add is already in too many channels/supergroups.
HTTP 400
Flood / Rate limits
When & why it happens
The account already has the maximum number of user channels allowed. Remove some before adding more.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "USER_CHANNELS_TOO_MUCH" {
// handle this error
}
}
Related errors
ADMINS_TOO_MUCHThere are too many admins.BOTS_TOO_MUCHThere are too many bots in this chat/channel.BOT_COMMANDS_TOO_MUCHThe provided commands are too many.CHANNELS_ADMIN_LOCATED_TOO_MUCHThe user has reached the limit of public geogroups.CHANNELS_ADMIN_PUBLIC_TOO_MUCHYou're admin of too many public channels, make some channels private to change the username of this channel.CHANNELS_TOO_MUCHYou have joined too many channels/supergroups.FLOOD_PREMIUM_WAIT_XA wait of %v seconds is required before calling the method.FLOOD_TEST_PHONE_WAIT_XA wait of %v seconds is required in the test servers.FLOOD_WAIT_XPlease wait %v seconds before repeating the action.INVITES_TOO_MUCHThe maximum number of per-folder invites was reached.OPTIONS_TOO_MUCHToo many options provided.PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs.