{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update",
  "type": "object",
  "properties": {
    "update_id": {
      "description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks , since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.",
      "type": "integer"
    },
    "message": {
      "description": "Optional . New incoming message of any kind - text, photo, sticker, etc.",
      "$ref": "#/definitions/Message"
    },
    "edited_message": {
      "description": "Optional . New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.",
      "$ref": "#/definitions/Message"
    },
    "channel_post": {
      "description": "Optional . New incoming channel post of any kind - text, photo, sticker, etc.",
      "$ref": "#/definitions/Message"
    },
    "edited_channel_post": {
      "description": "Optional . New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.",
      "$ref": "#/definitions/Message"
    },
    "business_connection": {
      "description": "Optional . The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot",
      "$ref": "#/definitions/BusinessConnection"
    },
    "business_message": {
      "description": "Optional . New message from a connected business account",
      "$ref": "#/definitions/Message"
    },
    "edited_business_message": {
      "description": "Optional . New version of a message from a connected business account",
      "$ref": "#/definitions/Message"
    },
    "deleted_business_messages": {
      "description": "Optional . Messages were deleted from a connected business account",
      "$ref": "#/definitions/BusinessMessagesDeleted"
    },
    "message_reaction": {
      "description": "Optional . A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify \"message_reaction\" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.",
      "$ref": "#/definitions/MessageReactionUpdated"
    },
    "message_reaction_count": {
      "description": "Optional . Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.",
      "$ref": "#/definitions/MessageReactionCountUpdated"
    },
    "inline_query": {
      "description": "Optional . New incoming inline query",
      "$ref": "#/definitions/InlineQuery"
    },
    "chosen_inline_result": {
      "description": "Optional . The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.",
      "$ref": "#/definitions/ChosenInlineResult"
    },
    "callback_query": {
      "description": "Optional . New incoming callback query",
      "$ref": "#/definitions/CallbackQuery"
    },
    "shipping_query": {
      "description": "Optional . New incoming shipping query. Only for invoices with flexible price",
      "$ref": "#/definitions/ShippingQuery"
    },
    "pre_checkout_query": {
      "description": "Optional . New incoming pre-checkout query. Contains full information about checkout",
      "$ref": "#/definitions/PreCheckoutQuery"
    },
    "purchased_paid_media": {
      "description": "Optional . A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat",
      "$ref": "#/definitions/PaidMediaPurchased"
    },
    "poll": {
      "description": "Optional . New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot",
      "$ref": "#/definitions/Poll"
    },
    "poll_answer": {
      "description": "Optional . A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.",
      "$ref": "#/definitions/PollAnswer"
    },
    "my_chat_member": {
      "description": "Optional . The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.",
      "$ref": "#/definitions/ChatMemberUpdated"
    },
    "chat_member": {
      "description": "Optional . A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify \"chat_member\" in the list of allowed_updates to receive these updates.",
      "$ref": "#/definitions/ChatMemberUpdated"
    },
    "chat_join_request": {
      "description": "Optional . A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.",
      "$ref": "#/definitions/ChatJoinRequest"
    },
    "chat_boost": {
      "description": "Optional . A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.",
      "$ref": "#/definitions/ChatBoostUpdated"
    },
    "removed_chat_boost": {
      "description": "Optional . A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.",
      "$ref": "#/definitions/ChatBoostRemoved"
    }
  },
  "required": [
    "update_id"
  ]
}