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
| Name | Type | Required | Description |
|---|---|---|---|
Chatlist | InputChatlistDialogFilter | yes | The folder |
Peers | []InputPeerClass | yes | List of new chats to join, fetched using chatlists.getChatlistUpdates and filtered as specified in the documentation ». |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | FILTER_ID_INVALID | The specified filter ID is invalid. |
| 400 | FILTER_INCLUDE_EMPTY | The include_peers vector of the filter is empty. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.joinChatlistUpdates#e089f8f5