Skip to main content

channels.getGroupsForDiscussion

Get all groups that can be used as discussion groups. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden, first.

func (c *Client) ChannelsGetGroupsForDiscussion(ctx context.Context) (MessagesChatsClass, error)

Calling this method

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

res, err := api.ChannelsGetGroupsForDiscussion(ctx)
if err != nil {
return err
}
_ = res // MessagesChatsClass
return nil
})

Parameters

This method takes no parameters.

Returns

MessagesChatsClass

References