Skip to content

checkAuthenticationBotToken

Function · TDLib 1.8.67 · d1085f9c

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

checkAuthenticationBotToken(
  token: string
) → Ok

token

string

The bot token