read_messages
Retrieve messages from a Telegram channel by username or ID. Filter by date, limit, or regex pattern to get specific content.
Instructions
Read messages from a Telegram channel.
Args: channel: Channel @username or numeric ID. account: Account name (default: configured default account). limit: Max messages when offset_date is None (default 20, max 1000). offset_date: ISO 8601 datetime — read all messages before this date (capped at 1000). search: Optional RegExp pattern to filter message text (max 200 chars).
Returns JSON: {"count": N, "channel": {"id", "title", "username"}, "messages": [{"id", "date", "text", "views", "reactions", "media_type", "link"}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| account | No | ||
| limit | No | ||
| offset_date | No | ||
| search | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |