Interface CheckAuthenticationBotToken

Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in. Request type for Tdjson#checkAuthenticationBotToken.

interface CheckAuthenticationBotToken {
    @type: "checkAuthenticationBotToken";
    token: string;
}

Properties

Properties

@type: "checkAuthenticationBotToken"
token: string

The bot token.