HTTP 400 · Bad Request
INVITE_REQUEST_SENT
You have successfully requested to join this chat or channel.
HTTP 400
Invites
When & why it happens
You have successfully requested to join this chat or channel. 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 == "INVITE_REQUEST_SENT" {
// handle this error
}
}
Related errors
INVITE_FORBIDDEN_WITH_JOINASYou cannot invite users while anonymously joined as a channel.INVITE_HASH_EMPTYThe invite hash is empty.INVITE_HASH_EXPIREDThe invite link has expired.INVITE_HASH_INVALIDThe invite hash is invalid.INVITE_REVOKED_MISSINGThe specified invite link was already revoked or is invalid.INVITE_SLUG_EMPTYThe specified invite slug is empty.INVITE_SLUG_EXPIREDThe specified chat folder link has expired.