tg_activity
Identify chats with any conversation during a period, counting incoming and outgoing messages separately. Ideal for daily activity recaps.
Instructions
Which chats had any conversation in a period — "where did I talk today".
Unlike tg_unread this covers chats that are already read and chats where only the owner wrote, so it is the right starting point for a daily recap. Counts incoming and outgoing separately and scans the archive too.
Args: since: "today" (default, local midnight), an ISO datetime, or a relative offset like "-6h". until: upper bound, ISO datetime; omit for "up to now". limit_chats: cap on chats returned. kind: keep one type only — "user", "bot", "group", "channel". include_own: false drops chats where nobody but the owner wrote. per_chat: also include this many messages from each chat as a sample.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| since | No | today | |
| until | No | ||
| per_chat | No | ||
| include_own | No | ||
| limit_chats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |