bots.reorderUsernames
Reorder usernames associated to a bot we own.
func (c *Client) BotsReorderUsernames(ctx context.Context, request *BotsReorderUsernamesRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.BotsReorderUsernames(ctx, &tg.BotsReorderUsernamesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Bot | InputUserClass | yes | The bot |
Order | []string | yes | The new order for active usernames. All active usernames must be specified. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | USERNAME_NOT_MODIFIED | The username was not modified. |
References
- Official documentation
- Generated Go reference
- TL definition:
bots.reorderUsernames#9709b1c2