messages.checkChatInvite

Check the validity of a chat invite link and get basic info about it

 Method schema is available as of layer 28. Switch »

Parameters

Name Type Description
hash string Invite hash in t.me/joinchat/hash or t.me/+hash

Result

ChatInvite

Possible 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.
Наверх