Interface GetManagedBotToken

Returns token of a managed bot; for bots only. Request type for Tdjson#getManagedBotToken.

interface GetManagedBotToken {
    @type: "getManagedBotToken";
    bot_user_id: number;
    revoke?: boolean;
}

Properties

@type: "getManagedBotToken"
bot_user_id: number

Identifier of the managed bot.

revoke?: boolean

Pass true to revoke the current token and create a new one.