Skip to content

checkAuthBotToken

Sahri Riza Umami edited this page Dec 8, 2016 · 3 revisions

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

checkAuthBotToken(token)

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

Option Description
token Bot token.

Example

checkAuthBotToken('1234567890:ABCDEFGHIJKLMNOPQRSTUVWYXYZ')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally