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
| Name | Type | Required | Description |
|---|---|---|---|
Channel | InputChannelClass | yes | The supergroup to convert |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_ID_INVALID | The specified supergroup ID is invalid. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 400 | FORUM_ENABLED | You can't execute the specified action because the group is a forum, disable forum functionality to continue. |
| 400 | PARTICIPANTS_TOO_FEW | Not enough participants. |
References
- Official documentation
- Generated Go reference
- TL definition:
channels.convertToGigagroup#b290c69