Skip to main content

channels.setMainProfileTab

Changes the main profile tab of a channel, see here » for more info.

func (c *Client) ChannelsSetMainProfileTab(ctx context.Context, request *ChannelsSetMainProfileTabRequest) (bool, error)

Calling this method

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

res, err := api.ChannelsSetMainProfileTab(ctx, &tg.ChannelsSetMainProfileTabRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ChannelInputChannelClassyesThe channel.
TabProfileTabClassyesThe tab to set as main tab.

Returns

bool

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

References