Layer 220
method Users
channels.setMainProfileTab#3583fcb1 channel:InputChannel tab:ProfileTab = Bool;

Parameters

Name Type Description
Channel InputChannel The channel.
Tab ProfileTab The tab to set as main tab.

Returns

Bool

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.

Gogram Example

// ChannelsSetMainProfileTab - positional arguments
result, err := client.ChannelsSetMainProfileTab(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, &tg.ProfileTab{})
if err != nil {
    // handle error
}
// result is *tg.Bool