Telegram Bot API

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.

post/replaceManagedBotToken

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/replaceManagedBotToken
  • Auth: none declared

Request body

user_idinteger required

User identifier of the managed bot whose token will be replaced

Response

Telegram API response

oktrue required
resultstring required

Changes

No recorded changes to this operation across all 3 revisions of this API.