peyk.platforms.telegram.methods.replace_managed_bot_token

async peyk.platforms.telegram.methods.replace_managed_bot_token(self, user_id: int) str

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.

Parameters:

user_id – User identifier of the managed bot whose token will be replaced

Returns:

Result returned by Telegram on successful execution.

Return type:

str