replaceManagedBotToken
Returns string ↗
Use this method to revoke the current token of a managed bot and generate a new one.
Required: user_id
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("replace_managed_bot_token", { user_id: 0})Parameters
user_id number Required
User identifier of the managed bot whose token will be replaced.