Telegram · Example Payload

Telegram Get Updates Example

BotsChatMessagingNotificationsPaymentsTelegram

Telegram Get Updates Example is an example object payload from Telegram, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.telegram.org/bot{token}/getUpdates",
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "offset": 1,
      "limit": 10,
      "timeout": 30
    }
  },
  "response": {
    "ok": true,
    "result": [
      {
        "update_id": 524876123,
        "message": {
          "message_id": 101,
          "from": {
            "id": 123456789,
            "is_bot": false,
            "first_name": "Jane",
            "last_name": "Smith",
            "username": "janesmith",
            "language_code": "en"
          },
          "chat": {
            "id": 123456789,
            "first_name": "Jane",
            "last_name": "Smith",
            "username": "janesmith",
            "type": "private"
          },
          "date": 1746268800,
          "text": "/start"
        }
      },
      {
        "update_id": 524876124,
        "callback_query": {
          "id": "4382bfdwdsf43",
          "from": {
            "id": 123456789,
            "is_bot": false,
            "first_name": "Jane",
            "last_name": "Smith",
            "username": "janesmith"
          },
          "message": {
            "message_id": 100,
            "date": 1746268700,
            "chat": {
              "id": 123456789,
              "type": "private"
            },
            "text": "Choose an option:"
          },
          "chat_instance": "-76543210987654321",
          "data": "option_1"
        }
      }
    ]
  }
}