Telegram: Get Logged-in Account Info

View all Telegram Messaging API endpoints →

Return information about the account logged in on this session: its numeric user id, phone number, username, first and last name, and whether it is a bot. Use it to confirm exactly which account a session is connected as and to display your own identity before sending.

API Features

Own-account details Returns the connected account's id, phone, username, and name
Session verification Confirm exactly which Telegram account a session is linked to
Pre-send check Verify identity before broadcasting from the account

Live API Demo

GET /api/project/telegram-messaging/get-account

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/telegram-messaging/get-account?key=<API_KEY>&sessionId=<sessionId>'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Related operations

Guides

View Subscription Plans →