Skip to main content

channels.deactivateAllUsernames

Disable all purchased usernames of a supergroup or channel

func (c *Client) ChannelsDeactivateAllUsernames(ctx context.Context, channel InputChannelClass) (bool, error)

Calling this method​

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

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

Parameters​

NameTypeRequiredDescription
ChannelInputChannelClassyesSupergroup or channel

Returns​

bool

Possible errors​

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

References​