# replaceManagedBotToken

Source: https://core.telegram.org/bots/api#replacemanagedbottoken

[Documentation index](../llms.txt)

Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as *String* on success.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| user\_id | Integer | Yes | User identifier of the managed bot whose token will be replaced |
