Function check_authentication_bot_token

Source
pub async fn check_authentication_bot_token(
    token: String,
    client_id: i32,
) -> Result<(), Error>
Expand description

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

ยงArguments

  • token - The bot token
  • client_id - The client id to send the request to