List Chats

View all Telegram Messaging API endpoints →

Return the chats observed since the session connected (built from incoming messages), sorted by last activity, newest first. Each item includes the jid (a user:<id> / chat:<id> / channel:<id> peer), the display name when known, and the last timestamp. These records are cleared on restart. Use it to build a conversation list and to discover the peer identifiers accepted by history and management endpoints.

API Features

Activity-sorted Chats come back most recently active first
Discover peers Provides the user:/chat:/channel: identifiers needed for history and group endpoints
Display names Includes the chat's display name when it is known

Live API Demo

GET /api/project/telegram-messaging/list-chats

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/telegram-messaging/list-chats?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 →