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 from chat invite deep link ».

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.

Related pages

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.