Layer 220
ChannelsSetMainProfileTab
Changes the main profile tab of a channel, see here for more info.
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
BoolPossible 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