Find Telegram chat ids
list_telegram_chatsFind the chat IDs a Telegram bot can be addressed by scanning updates from the last 24 hours; a webhook returns an empty list, so absence is not proof of no access.
Instructions
Find the chat ids this Telegram bot can be addressed by. STATE THE LIMIT WHENEVER YOU USE IT: this is NOT the list of chats the bot belongs to — the Bot API publishes no such method — it is every chat that SENT the bot an update in the last 24 hours, which is as long as Telegram keeps an update. A channel the bot posts to every day but nobody messages will NOT appear here, and its absence means nothing at all: post to it by @username or numeric id anyway. If the bot has an outgoing WEBHOOK configured the list is empty for that reason alone (Telegram: getUpdates "will not work if an outgoing webhook is set up"), and the reply says so rather than reading as an empty account. Nothing is consumed — no update offset is confirmed, so this cannot eat the bot’s pending updates. Free, 0 credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_telegram_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | how many recent updates to scan, 1–100 (default 100) | |
| account | No | which connected account: its @handle or id from list_connector_accounts; needed only when several are connected |