Layer 220
MessagesCheckChatInvite
Check the validity of a chat invite link and get basic info about it
method
Users
messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;
Parameters
| Name | Type | Description |
|---|---|---|
| Hash | string | Invite hash from chat invite deep link. |
Returns
ChatInvitePossible Errors
| Code | Type | Description |
|---|---|---|
| 406 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | INVITE_HASH_EMPTY | The invite hash is empty. |
| 406 | INVITE_HASH_EXPIRED | The invite link has expired. |
| 400 | INVITE_HASH_INVALID | The invite hash is invalid. |
Gogram Example
// MessagesCheckChatInvite - positional arguments result, err := client.MessagesCheckChatInvite("...") if err != nil { // handle error } // result is *tg.ChatInvite