Submit Login Code (Phone Mode)
View All Telegram Messaging API APIs →Submit the login code Telegram delivered to the account in the Telegram app (not SMS). Only valid while the session status is WAITING_FOR_OTP. Send a JSON body with code. The call is accepted asynchronously — poll Get Session Status for the final result. If the account has two-factor authentication, the session then shows twoFactorRequired=true and you continue with Submit 2FA Password.
API Features
Simple code submit One code field completes the phone-number login step
Async acceptance Returns immediately; poll the session for the CONNECTED result
2FA handoff twoFactorRequired tells you exactly when to continue with the cloud password
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/telegram-messaging/verify-otp API Response (JSON)
{} Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Complete a phone-mode login from an onboarding UI
- Automate account provisioning with a code-entry step
- Resume a login flow after the user fetches the code from the Telegram app