HTTP 400 · Bad Request
INVITES_TOO_MUCH
The maximum number of per-folder invites was reached.
HTTP 400
Flood / Rate limits
When & why it happens
The account already has the maximum number of invites 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 == "INVITES_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.OPTIONS_TOO_MUCHToo many options provided.PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs.QUIZ_CORRECT_ANSWERS_TOO_MUCHYou specified too many correct answers in a quiz, quizzes can only have one right answer!