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
| Name | Type | Required | Description |
|---|---|---|---|
Slug | string | yes | slug obtained from a chat folder deep link ». |
Peers | []InputPeerClass | yes | List of new chats to join, fetched using chatlists.checkChatlistInvite and filtered as specified in the documentation ». |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.joinChatlistInvite#a6b1e39a