login_submit_code
Submit the login code Telegram sent to finish authentication; if two-factor is enabled, resubmit with the password.
Instructions
Finish logging in with the code Telegram sent.
If the account has two-factor authentication, this returns an error asking for the password; call it again with both.
Args: code: the login code the user received. password: two-factor password, only if the account has one. session: the session being logged in; must match login_request_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| session | No | watcher | |
| password | No |