Skip to main content

chatlists.joinChatlistInvite

Import a chat folder deep link », joining some or all the chats in the folder.

func (c *Client) ChatlistsJoinChatlistInvite(ctx context.Context, request *ChatlistsJoinChatlistInviteRequest) (UpdatesClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ChatlistsJoinChatlistInvite(ctx, &tg.ChatlistsJoinChatlistInviteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
Slugstringyesslug obtained from a chat folder deep link ».
Peers[]InputPeerClassyesList of new chats to join, fetched using chatlists.checkChatlistInvite and filtered as specified in the documentation ».

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups.
400CHATLISTS_TOO_MUCHYou have created too many folder links, hitting the chatlist_invites_limit_default/chatlist_invites_limit_premium limits ».
400FILTER_INCLUDE_EMPTYThe include_peers vector of the filter is empty.
400INVITE_SLUG_EMPTYThe specified invite slug is empty.
400INVITE_SLUG_EXPIREDThe specified chat folder link has expired.

References