Bot: new messages
bot_get_new_messagesFetches messages people sent the bot since the last check from all chats, oldest first, and marks them read for polling new inputs.
Instructions
Get messages people sent the bot since the last check, from all chats, oldest first, and mark them read.
Messages carry chat_id, kind, text and file_id for media. Fails while a webhook is set.
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": "bot_get_new_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages. |