Telegram Fetch Channel Posts
### Purpose: - Fetch a public channel's recent posts (text, photos, videos, forwards, replies, link previews, reactions, views, time). ### Parameters: - channel: Channel username (required). - limit: Number of posts (1-100, default 20; when >20 the server automatically pages toward older posts). - before: Pagination cursor — fetch older posts, pass `data.pagination.before_cursor` from the previous page. - after: Pagination cursor — fetch newer posts, pass `data.pagination.after_cursor` from the previous page. ### Return: - `channel_info` (same structure as fetch_channel_info), `messages` array and a `pagination` cursor object. - Media direct links (cdn4.telesco.pe) are signed and expire — download / re-host them promptly. # [示例/Example] channel = "durov"; limit = 20 AE input example: {"channel":"durov","limit":20,"before":0,"after":0}
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
after | integer | No | 取更新:传上页 after_cursor/Newer than this id | 0 |
limit | integer | No | 返回条数/Number of posts | 20 |
before | integer | No | 取更老:传上页 before_cursor/Older than this id | 0 |
channel | string | Yes | 频道用户名/Channel username | — |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_telegram_fetch_channel_posts' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"channel": "job_web3",
"limit": 25
}
}'{
"code": 200,
"data": {
"channel": "job_web3",
"channel_info": {
"counters": {
"file": "1",
"links": "2.41K",
"photos": "52",
"subscribers": "11.2K",
"videos": "23"
},
"description": "№ 8076301751 • Jobs are hand-picked• Verified IT-employersДругие каналы с вакансиям -@best_ITjobРазместить рекламу -@hr_rusРазместить вакансию -@hr_rus",
"photo": "https://cdn4.telesco.pe/file/stj5Jk0mCGQV4IBFrt4ih40oAgcItviYtKqH1sZZgiS_Fxpk9xzX9O6eYLOodsNWpuAC2pJhoWGN2Qx_YBtSMxm5ZVQA8f6vIC-0zabWUCATXkbABTvMuio25_R3F88R9Qo95PXJlb-uwpnk-GmZQ_5UPSvBX5It1wZidGmAI6Mj_h264aRtVt4ZKl-KC1oE4f07I0bRQ2fvNXR2SAVV2isZ2oqo-d-jQgM",
"subscribers": "11.2K",
"title": "Web 3.0 Job | Крипто Вакансии",
"username": "job_web3"
},
"messages": [
{
"author": "Web 3.0 Job | Крипто Вакансии",
"channel": "job_web3",
"date": "2026-11-17T11:30:08+00:00",
"id": 3968,
"type": "text",
"url": "https://t.me/job_web3/3968"
}
],
"pagination": {
"after_cursor": 3968,
"count": 25
}
},
"docs": "https://api.tikhub.io/#/Telegram-Web-API/fetch_channel_posts_api_v1_telegram_web_fetch_channel_posts_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"request_id": "4577d300-8017-4518-9eb6-8cad876418b1"
}This example shows part of the response. Copied content is valid JSON.






