Layer 220
method Users
chatlists.joinChatlistInvite#a6b1e39a slug:string peers:Vector<InputPeer> = Updates;

Parameters

Name Type Description
Slug string slug obtained from a chat folder deep link.
Peers Vector<InputPeer> List of new chats to join, fetched using chatlists. check Chatlist Invite and filtered as specified in the documentation.

Returns

Updates

Possible Errors

Code Type Description
400 CHANNELS_TOO_MUCH You have joined too many channels/supergroups.
400 CHATLISTS_TOO_MUCH You have created too many folder links, hitting the chatlist_invites_limit_default / chatlist_invites_limit_premium limits.
400 FILTER_INCLUDE_EMPTY The include_peers vector of the filter is empty.
400 INVITE_SLUG_EMPTY The specified invite slug is empty.
400 INVITE_SLUG_EXPIRED The specified chat folder link has expired.

Gogram Example

// ChatlistsJoinChatlistInvite - positional arguments
result, err := client.ChatlistsJoinChatlistInvite("...", []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}})
if err != nil {
    // handle error
}
// result is *tg.Updates