Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Update → Get Updates
AI-generatedSummary
Retrieve updates for the Telegram bot using optional parameters to control the update offset, limit, long polling timeout, and the types of updates allowed.
Inputs
- Offset — Identifier of the first update to be returned to specify the starting point for fetching updates.
- Limit — Maximum number of updates to return, between 1 and 100.
- Timeout — Timeout in seconds for long polling; holds the request open on the server to wait for new updates.
- Allowed Updates (JSON) — JSON array specifying the types of updates to receive (e.g., messages, edited messages) to filter the updates.
Output shape
a list of update objects, each representing an individual update received by the bot
The response returns an array of update objects; if no updates are available, returns an empty array. Supports pagination via the offset parameter to receive subsequent updates. Errors are returned as exceptions.
Examples
Example 1: Fetch the latest 50 updates starting from update ID 1000.
Set Offset to 1000 and Limit to 50 with default Timeout and Allowed Updates.