---
title: "getUpdates"
method: POST
path: "/bot{token}/getUpdates"
---

# getUpdates

`POST /bot{token}/getUpdates`

Use this method to receive incoming updates using long polling.

## Path parameters

- `token` string, required

## Request body

- object
  - `offset` integer — Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will forgotten.
  - `limit` integer — Limits the number of updates to be retrieved. Values between 1—100 are accepted. Defaults to 100.
  - `timeout` integer — Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling

## Response `200`

200

- object
  - `ok` boolean
  - `result` object[]
    - `update_id` integer
    - `message` object
      - `message_id` integer
      - `from` object
        - `id` integer
        - `first_name` string
        - `last_name` string
        - `username` string
      - `chat` object
        - `id` integer
        - `first_name` string
        - `last_name` string
        - `username` string
        - `type` string
      - `date` integer
      - `text` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/telegram/apis/api-settings.md) · [All operations](https://skmtc.net/telegram/apis/api-settings/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/telegram/api-settings/versions/1933ff0a8d5f/schema)
