Skip to content

checkAuthenticationBotToken

Sahri Riza Umami edited this page Jun 6, 2018 · 1 revision

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()
Field Type Description
token string The bot token

Example

  • Checks the authentication token of a bot; to log in as a bot.

    checkAuthenticationBotToken('123456789:ABCD-dEF2ghijK6Lmno5pQRSt_u5VwXYZPSc')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally