Skip to main content

chatlists.joinChatlistUpdates

Join channels and supergroups recently added to a chat folder deep link ».

func (c *Client) ChatlistsJoinChatlistUpdates(ctx context.Context, request *ChatlistsJoinChatlistUpdatesRequest) (UpdatesClass, error)

Calling this method

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

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

Parameters

NameTypeRequiredDescription
ChatlistInputChatlistDialogFilteryesThe folder
Peers[]InputPeerClassyesList of new chats to join, fetched using chatlists.getChatlistUpdates and filtered as specified in the documentation ».

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400FILTER_ID_INVALIDThe specified filter ID is invalid.
400FILTER_INCLUDE_EMPTYThe include_peers vector of the filter is empty.

References