Telegram Fetch Channel Posts

2.07积分/次
ae_telegram_fetch_channel_posts

### 用途: - 抓取公开频道最近的消息列表(含文本、图片、视频、转发、回复、链接卡、表态、阅读量、时间)。 ### 参数: - channel: 频道用户名(必填)。 - limit: 返回条数(1-100,默认 20;>20 时服务端会自动向更老方向翻页累积)。 - before: 翻页游标 —— 取「更老」的消息,回传上一页响应里的 `data.pagination.before_cursor`。 - after: 翻页游标 —— 取「更新」的消息,回传上一页响应里的 `data.pagination.after_cursor`。 ### 返回: - `channel_info`(结构同 fetch_channel_info)、`messages` 数组、`pagination` 游标对象。 - 媒体直链(cdn4.telesco.pe)带签名且会过期,请尽快下载/转存。 AE调用参数示例: {"channel":"durov","limit":20,"before":0,"after":0}

社交搜索研究
2.07积分/次

价格说明

2.07积分/次
条件费用
每次调用2.07积分/次

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
afterinteger否取更新:传上页 after_cursor/Newer than this id0
limitinteger否返回条数/Number of posts20
beforeinteger否取更老:传上页 before_cursor/Older than this id0
channelstring是频道用户名/Channel username—

调用示例

复制请求代码,查看对应的返回示例。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --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
  }
}'
返回示例response.json
JSON部分内容
{
  "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"
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。