Skip to main content

channels.convertToGigagroup

Convert a supergroup to a gigagroup, when requested by channel suggestions.

func (c *Client) ChannelsConvertToGigagroup(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)

Calling this method

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

res, err := api.ChannelsConvertToGigagroup(ctx, channel)
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
ChannelInputChannelClassyesThe supergroup to convert

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400CHANNEL_ID_INVALIDThe specified supergroup ID is invalid.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400FORUM_ENABLEDYou can't execute the specified action because the group is a forum, disable forum functionality to continue.
400PARTICIPANTS_TOO_FEWNot enough participants.

References