Call it
curl https://api.peume.com/v1/call/telegram-post-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 50,
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/telegram-post-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 50,
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/telegram-post-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 50,
"url": "your url"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: telegram-post-comments.
Parameters
page_tokenstringPage token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 100 comments (`limit`, default 50) and counts as one call; paging reaches all the way back to the first comment, and only a page without `next_page_token` is the last one.
limitintegerMaximum number of results, 1 to 100 (default 50). For some actions it counts pages or items per parent rather than final rows.
Example: 50
urlRequiredstringLink to one public channel message, <channel>/<message ID> (t.me/s/ links work too); the call returns the comments under it. A message whose comments are turned off or not public returns 200 with an empty result and `empty_reason` set to `comments_closed`; a channel or message that does not exist returns an empty result.
