Telegram Archive icon

Telegram Archive

Query archived Telegram chats, messages, and statistics via Telegram-Archive

Actions11

Message → List

AI-generated

Summary

List messages from a specific Telegram chat, optionally filtered by a search query, with pagination support via limit and offset parameters.

Inputs

  • Chat ID (required) — The ID of the chat to list messages from.
  • Limit — Maximum number of messages to return (default: 50).
  • Offset — Number of messages to skip before starting to collect the result set (default: 0).
  • Search Query — Optional search string to filter messages containing specific text.

Output shape

a list of message objects for the specified chat

Returns an array of messages as JSON objects. Supports pagination by 'limit' and 'offset'. If a search query is specified, only messages matching the search are returned.

Examples

Example 1: Retrieve the first 50 messages in chat with ID '12345'.

Set 'Chat ID' to '12345', leave 'Limit' as 50, 'Offset' as 0, and 'Search Query' empty.

Example 2: Retrieve the next 25 messages (skip first 50) in chat '12345' containing the word 'urgent'.

Set 'Chat ID' to '12345', 'Limit' to 25, 'Offset' to 50, and 'Search Query' to 'urgent'.

Links

Discussion