Layer 224
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
BoolGogram Example
// ChannelsSetMainProfileTab - positional arguments result, err := client.ChannelsSetMainProfileTab(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, &tg.ProfileTab{}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |