get_messages
Retrieve up to 200 recent messages from a chat, newest first. Use date or offset filters to page backward through history and analyze past conversations.
Instructions
Get up to 200 recent messages from one chat, newest first.
chat: @username, numeric/marked chat ID (see get_channel_info for resolution
notes), or title. since_date: optional cutoff, ISO 8601 (e.g. "2026-08-01" or
"2026-08-01T00:00:00+09:00"); results default to the last 7 days when it is
omitted. Pass an explicit date to look further back; a very old date effectively
means all history. A value with no timezone is treated as UTC.
offset_id: only return messages with an ID strictly below this one, useful for
paging backward through history. Returns each message's id, ISO date, sender
name/id, text, has_media, and media_type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| limit | No | ||
| offset_id | No | ||
| since_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |