Bot: new messages
bot_get_new_messagesRetrieve unread messages sent to your Bale bot since the last check, oldest first, then mark them as read. Reply using chat_id; download media with file_id.
Instructions
Get messages people sent the bot since the last check, from all chats, oldest first, and mark them read.
Each message has chat_id (reply with it), from, kind (text, photo, button, ...), text, and file_id for media (see bot_download_file). unread_left counts the rest. Fails while a webhook is set (see bot_get_webhook_info).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages. |