sync_telegram
Sync new Telegram messages from your bot into memory. Use a chat ID to filter specific conversations or sync all chats automatically.
Instructions
Sync new Telegram messages received by the bot into memory.
Uses the Telegram Bot API (getUpdates) to fetch messages sent to the bot since the last sync. Requires TELEGRAM_BOT_TOKEN in environment.
Args: chat_id: Telegram chat ID to filter (positive = user DM, negative = group). Syncs all chats if not provided. Uses TELEGRAM_CHAT_ID env var as default.
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": "sync_telegram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No |