get_updates
Retrieve recent messages and updates sent to your bot. Supports long polling, pagination, and filtering by update type.
Instructions
Get recent incoming messages and updates. Returns latest messages sent to the bot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of updates (1-100, default: 10) | |
| offset | No | Offset for pagination. Use update_id+1 from last update to get only new ones. | |
| timeout | No | Long polling timeout in seconds (0 = short poll). Default: 0 | |
| allowed_updates | No | JSON array of update types to receive (e.g. '["message","callback_query"]') |