Get Updates
get_updatesRetrieve new events from MAX Messenger, including messages, button clicks, and user join/leave notifications. Use markers for incremental updates and optional long polling timeout.
Instructions
Get incoming events: new messages, button clicks, user joins/leaves, etc. This is the ONLY way to get chat_id for personal dialogs (type: dialog). Use the returned marker in the next call to get only new events. Set timeout=0 for instant response, timeout>0 for long polling (waits up to N seconds for new events). Event types: message_created, message_edited, message_removed, message_callback, bot_started, bot_added, bot_removed, user_added, user_removed, message_chat_created. NOTE: Designed for development and manual polling only. For production bots use webhooks (POST /subscriptions) — in production the update queue accumulates quickly without continuous processing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of events to return (1-1000, default: 100) | |
| timeout | No | Long polling timeout in seconds (0 = instant, default: 0) | |
| marker | No | Pagination marker from previous get_updates call to get only new events | |
| types | No | Filter by event types (omit to get all types) |