HTTP 400 · Bad Request
INVITE_HASH_INVALID
The invite hash is invalid.
HTTP 400
Invites
When & why it happens
The supplied invite hash is malformed, points to nothing the server recognises, or fails a server-side validity check.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "INVITE_HASH_INVALID" {
// 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_REQUEST_SENTYou have successfully requested to join this chat or channel.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.