channels.reorderUsernames
Reorder active usernames
func (c *Client) ChannelsReorderUsernames(ctx context.Context, request *ChannelsReorderUsernamesRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChannelsReorderUsernames(ctx, &tg.ChannelsReorderUsernamesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Channel | InputChannelClass | yes | The supergroup or channel |
Order | []string | yes | The new order for active usernames. All active usernames must be specified. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
References
- Official documentation
- Generated Go reference
- TL definition:
channels.reorderUsernames#b45ced1d