Skip to content

checkAuthBotToken

Naji edited this page Sep 4, 2017 · 3 revisions

Check bot's authentication token to log in as a bot

checkAuthBotToken(token)

Works only when getAuthState returns authStateWaitPhoneNumber. Can be used instead of setAuthPhoneNumber and checkAuthCode to log in. Returns authStateOk on success

Option Description
token Bot token

Clone this wiki locally