Telegram Fetch Channel Search
2.07积分/次
ae_telegram_fetch_channel_search
### 用途: - 在某频道里按关键词搜索消息(大小写不敏感)。 - 后端 MTProto 已启用时走 Telegram 官方服务端搜索,翻遍整个频道历史, 返回 `data.backend = "mtproto"`;否则回退为近期历史的本地过滤,返回 `data.backend = "web"`。 ### 参数: - channel: 频道用户名(必填)。 - query: 关键词(必填)。 - limit: 返回命中条数(1-100,默认 20)。 AE调用参数示例: {"channel":"durov","query":"TON","limit":20}
2.07积分/次
价格说明
2.07积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 2.07积分/次 |
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
limit | integer | 否 | 返回条数/Number of hits | 20 |
query | string | 是 | 关键词/Keyword | — |
channel | string | 是 | 频道用户名/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_search' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"channel": "durov",
"limit": 20,
"query": "TON"
}
}'返回示例response.json
{
"code": 200,
"data": {
"backend": "web",
"channel": "durov",
"matched": 15,
"messages": [
{
"author": "Pavel Durov",
"channel": "durov",
"date": "2026-11-15T22:48:26+00:00",
"id": 562,
"type": "photo",
"url": "https://t.me/durov/562"
}
],
"note": "Best-effort keyword filter over recent posts only; older matches may be missing.",
"query": "TON"
},
"docs": "https://api.tikhub.io/#/Telegram-Web-API/fetch_channel_search_api_v1_telegram_web_fetch_channel_search_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"request_id": "1985f081-719c-40e9-beec-3a102992a413"
}返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。






