Use this method to edit animation

POST /editMessageMedia

Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded. Use a previously uploaded file via its file_id or specify a URL. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.

Body Required

  • chat_id integer | string

    Any of:

    Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)

    Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)

  • message_id integer

    Required if inline_message_id is not specified. Identifier of the message to edit

  • inline_message_id string

    Required if chat_id and message_id are not specified. Identifier of the inline message

  • media object Required

    Any of:
  • reply_markup object

    This object represents an inline keyboard that appears right next to the message it belongs to.

    Hide reply_markup attribute Show reply_markup attribute object

Responses

  • default
    Hide response attributes Show response attributes object
    • ok boolean Required

      Default value is false.

    • error_code integer Required
    • description string Required
    • parameters object

      Contains information about why a request was unsuccessful.

      Hide parameters attributes Show parameters attributes object
      • migrate_to_chat_id integer

        Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

      • retry_after integer

        Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated

  • 200
    Hide response attributes Show response attributes object
    • ok boolean Required

      Default value is true.

    • result object | boolean Required

      Any of:

      Default value is true.

POST /editMessageMedia
curl \
 -X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/editMessageMedia \
 -H "Content-Type: multipart/form-data" \
 -F "chat_id=42" \
 -F "message_id=42" \
 -F "inline_message_id=string" \
 -F 'media={"type":"string","media":"string","caption":"string","parse_mode":"string","caption_entities":[{"type":"mention","offset":42,"length":42,"url":"string","user":{"id":42,"is_bot":true,"first_name":"string","last_name":"string","username":"string","language_code":"string","can_join_groups":true,"can_read_all_group_messages":true,"supports_inline_queries":true},"language":"string"}],"width":42,"height":42,"duration":42}' \
 -F 'reply_markup={"":[[{}]]}'
Request example
{
  "chat_id": 42,
  "message_id": 42,
  "inline_message_id": "string",
  "media": {
    "type": "string",
    "media": "string",
    "caption": "string",
    "parse_mode": "string",
    "caption_entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "id": 42,
          "is_bot": true,
          "first_name": "string",
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "width": 42,
    "height": 42,
    "duration": 42
  },
  "reply_markup": {
    "": [
      [
        {}
      ]
    ]
  }
}
Request examples
{
  "chat_id": 42,
  "message_id": 42,
  "inline_message_id": "string",
  "media": {
    "type": "string",
    "caption": "string",
    "media": "string",
    "parse_mode": "string",
    "caption_entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "id": 42,
          "is_bot": true,
          "first_name": "string",
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "width": 42,
    "height": 42,
    "duration": 42
  },
  "reply_markup": {
    "": [
      [
        {}
      ]
    ]
  }
}
Response examples (default)
{
  "ok": false,
  "error_code": 42,
  "description": "string",
  "parameters": {
    "migrate_to_chat_id": 42,
    "retry_after": 42
  }
}
Response examples (default)
{
  "ok": false,
  "error_code": 42,
  "description": "string",
  "parameters": {
    "migrate_to_chat_id": 42,
    "retry_after": 42
  }
}
Response examples (200)
{
  "ok": true,
  "result": {
    "message_id": 42,
    "from": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "sender_chat": {
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "linked_chat_id": 42,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "date": 42,
    "chat": {
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "linked_chat_id": 42,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "forward_from": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "forward_from_chat": {
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "linked_chat_id": 42,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "forward_from_message_id": 42,
    "forward_signature": "string",
    "forward_sender_name": "string",
    "forward_date": 42,
    "reply_to_message": {},
    "via_bot": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "edit_date": 42,
    "media_group_id": "string",
    "author_signature": "string",
    "text": "string",
    "entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "id": 42,
          "is_bot": true,
          "first_name": "string",
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "animation": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "audio": {
      "file_id": "string",
      "file_unique_id": "string",
      "duration": 42,
      "performer": "string",
      "title": "string",
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    },
    "document": {
      "file_id": "string",
      "file_unique_id": "string",
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "photo": [
      {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    ],
    "sticker": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "is_animated": true,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "emoji": "string",
      "set_name": "string",
      "mask_position": {
        "point": "forehead",
        "x_shift": 42.0,
        "y_shift": 42.0,
        "scale": 42.0
      },
      "file_size": 42
    },
    "video": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "video_note": {
      "file_id": "string",
      "file_unique_id": "string",
      "length": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_size": 42
    },
    "voice": {
      "file_id": "string",
      "file_unique_id": "string",
      "duration": 42,
      "mime_type": "string",
      "file_size": 42
    },
    "caption": "string",
    "caption_entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "id": 42,
          "is_bot": true,
          "first_name": "string",
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "contact": {
      "phone_number": "string",
      "first_name": "string",
      "last_name": "string",
      "user_id": 42,
      "vcard": "string"
    },
    "dice": {
      "emoji": "string",
      "value": 42
    },
    "game": {
      "title": "string",
      "description": "string",
      "photo": [
        {
          "file_id": "string",
          "file_unique_id": "string",
          "width": 42,
          "height": 42,
          "file_size": 42
        }
      ],
      "text": "string",
      "text_entities": [
        {
          "type": "mention",
          "offset": 42,
          "length": 42,
          "url": "string",
          "user": {
            "id": 42,
            "is_bot": true,
            "first_name": "string",
            "last_name": "string",
            "username": "string",
            "language_code": "string",
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "supports_inline_queries": true
          },
          "language": "string"
        }
      ],
      "animation": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "duration": 42,
        "thumb": {
          "file_id": "string",
          "file_unique_id": "string",
          "width": 42,
          "height": 42,
          "file_size": 42
        },
        "file_name": "string",
        "mime_type": "string",
        "file_size": 42
      }
    },
    "poll": {
      "id": "string",
      "question": "string",
      "options": [
        {
          "text": "string",
          "voter_count": 42
        }
      ],
      "total_voter_count": 42,
      "is_closed": true,
      "is_anonymous": true,
      "type": "string",
      "allows_multiple_answers": true,
      "correct_option_id": 42,
      "explanation": "string",
      "explanation_entities": [
        {
          "type": "mention",
          "offset": 42,
          "length": 42,
          "url": "string",
          "user": {
            "id": 42,
            "is_bot": true,
            "first_name": "string",
            "last_name": "string",
            "username": "string",
            "language_code": "string",
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "supports_inline_queries": true
          },
          "language": "string"
        }
      ],
      "open_period": 42,
      "close_date": 42
    },
    "venue": {
      "location": {
        "longitude": 42.0,
        "latitude": 42.0,
        "horizontal_accuracy": 42.0,
        "live_period": 42,
        "heading": 42,
        "proximity_alert_radius": 42
      },
      "title": "string",
      "address": "string",
      "foursquare_id": "string",
      "foursquare_type": "string",
      "google_place_id": "string",
      "google_place_type": "string"
    },
    "location": {
      "longitude": 42.0,
      "latitude": 42.0,
      "horizontal_accuracy": 42.0,
      "live_period": 42,
      "heading": 42,
      "proximity_alert_radius": 42
    },
    "new_chat_members": [
      {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      }
    ],
    "left_chat_member": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "new_chat_title": "string",
    "new_chat_photo": [
      {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    ],
    "delete_chat_photo": true,
    "group_chat_created": true,
    "supergroup_chat_created": true,
    "channel_chat_created": true,
    "migrate_to_chat_id": 42,
    "migrate_from_chat_id": 42,
    "pinned_message": {},
    "invoice": {
      "title": "string",
      "description": "string",
      "start_parameter": "string",
      "currency": "string",
      "total_amount": 42
    },
    "successful_payment": {
      "currency": "string",
      "total_amount": 42,
      "invoice_payload": "string",
      "shipping_option_id": "string",
      "order_info": {
        "name": "string",
        "phone_number": "string",
        "email": "string",
        "shipping_address": {
          "country_code": "string",
          "state": "string",
          "city": "string",
          "street_line1": "string",
          "street_line2": "string",
          "post_code": "string"
        }
      },
      "telegram_payment_charge_id": "string",
      "provider_payment_charge_id": "string"
    },
    "connected_website": "string",
    "passport_data": {
      "data": [
        {
          "type": "personal_details",
          "data": "string",
          "phone_number": "string",
          "email": "string",
          "files": [
            {
              "file_id": "string",
              "file_unique_id": "string",
              "file_size": 42,
              "file_date": 42
            }
          ],
          "front_side": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "reverse_side": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "selfie": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "translation": [
            {
              "file_id": "string",
              "file_unique_id": "string",
              "file_size": 42,
              "file_date": 42
            }
          ],
          "hash": "string"
        }
      ],
      "credentials": {
        "data": "string",
        "hash": "string",
        "secret": "string"
      }
    },
    "proximity_alert_triggered": {
      "traveler": {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      },
      "watcher": {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      },
      "distance": 42
    },
    "reply_markup": {
      "": [
        [
          {}
        ]
      ]
    }
  }
}
Response examples (200)
{
  "ok": true,
  "result": {
    "message_id": 42,
    "from": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "sender_chat": {
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "linked_chat_id": 42,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "date": 42,
    "chat": {
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "linked_chat_id": 42,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "forward_from": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "forward_from_chat": {
      "photo": {
        "small_file_id": "string",
        "small_file_unique_id": "string",
        "big_file_id": "string",
        "big_file_unique_id": "string"
      },
      "id": 42,
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "last_name": "string",
      "bio": "string",
      "description": "string",
      "invite_link": "string",
      "pinned_message": {},
      "permissions": {
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_polls": true,
        "can_send_other_messages": true,
        "can_add_web_page_previews": true,
        "can_change_info": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "linked_chat_id": 42,
      "slow_mode_delay": 42,
      "sticker_set_name": "string",
      "can_set_sticker_set": true,
      "location": {
        "location": {
          "longitude": 42.0,
          "latitude": 42.0,
          "horizontal_accuracy": 42.0,
          "live_period": 42,
          "heading": 42,
          "proximity_alert_radius": 42
        },
        "address": "string"
      }
    },
    "forward_from_message_id": 42,
    "forward_signature": "string",
    "forward_sender_name": "string",
    "forward_date": 42,
    "reply_to_message": {},
    "via_bot": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "edit_date": 42,
    "media_group_id": "string",
    "author_signature": "string",
    "text": "string",
    "entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "first_name": "string",
          "id": 42,
          "is_bot": true,
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "animation": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "audio": {
      "file_id": "string",
      "file_unique_id": "string",
      "duration": 42,
      "performer": "string",
      "title": "string",
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    },
    "document": {
      "file_id": "string",
      "file_unique_id": "string",
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "photo": [
      {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    ],
    "sticker": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "is_animated": true,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "emoji": "string",
      "set_name": "string",
      "mask_position": {
        "point": "forehead",
        "x_shift": 42.0,
        "y_shift": 42.0,
        "scale": 42.0
      },
      "file_size": 42
    },
    "video": {
      "file_id": "string",
      "file_unique_id": "string",
      "width": 42,
      "height": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_name": "string",
      "mime_type": "string",
      "file_size": 42
    },
    "video_note": {
      "file_id": "string",
      "file_unique_id": "string",
      "length": 42,
      "duration": 42,
      "thumb": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      },
      "file_size": 42
    },
    "voice": {
      "file_id": "string",
      "file_unique_id": "string",
      "duration": 42,
      "mime_type": "string",
      "file_size": 42
    },
    "caption": "string",
    "caption_entities": [
      {
        "type": "mention",
        "offset": 42,
        "length": 42,
        "url": "string",
        "user": {
          "id": 42,
          "is_bot": true,
          "first_name": "string",
          "last_name": "string",
          "username": "string",
          "language_code": "string",
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "supports_inline_queries": true
        },
        "language": "string"
      }
    ],
    "contact": {
      "phone_number": "string",
      "first_name": "string",
      "last_name": "string",
      "user_id": 42,
      "vcard": "string"
    },
    "dice": {
      "emoji": "string",
      "value": 42
    },
    "game": {
      "title": "string",
      "description": "string",
      "photo": [
        {
          "file_id": "string",
          "file_unique_id": "string",
          "width": 42,
          "height": 42,
          "file_size": 42
        }
      ],
      "text": "string",
      "text_entities": [
        {
          "type": "mention",
          "offset": 42,
          "length": 42,
          "url": "string",
          "user": {
            "id": 42,
            "is_bot": true,
            "first_name": "string",
            "last_name": "string",
            "username": "string",
            "language_code": "string",
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "supports_inline_queries": true
          },
          "language": "string"
        }
      ],
      "animation": {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "duration": 42,
        "thumb": {
          "file_id": "string",
          "file_unique_id": "string",
          "width": 42,
          "height": 42,
          "file_size": 42
        },
        "file_name": "string",
        "mime_type": "string",
        "file_size": 42
      }
    },
    "poll": {
      "id": "string",
      "question": "string",
      "options": [
        {
          "text": "string",
          "voter_count": 42
        }
      ],
      "total_voter_count": 42,
      "is_closed": true,
      "is_anonymous": true,
      "type": "string",
      "allows_multiple_answers": true,
      "correct_option_id": 42,
      "explanation": "string",
      "explanation_entities": [
        {
          "type": "mention",
          "offset": 42,
          "length": 42,
          "url": "string",
          "user": {
            "id": 42,
            "is_bot": true,
            "first_name": "string",
            "last_name": "string",
            "username": "string",
            "language_code": "string",
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "supports_inline_queries": true
          },
          "language": "string"
        }
      ],
      "open_period": 42,
      "close_date": 42
    },
    "venue": {
      "location": {
        "longitude": 42.0,
        "latitude": 42.0,
        "horizontal_accuracy": 42.0,
        "live_period": 42,
        "heading": 42,
        "proximity_alert_radius": 42
      },
      "title": "string",
      "address": "string",
      "foursquare_id": "string",
      "foursquare_type": "string",
      "google_place_id": "string",
      "google_place_type": "string"
    },
    "location": {
      "longitude": 42.0,
      "latitude": 42.0,
      "horizontal_accuracy": 42.0,
      "live_period": 42,
      "heading": 42,
      "proximity_alert_radius": 42
    },
    "new_chat_members": [
      {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      }
    ],
    "left_chat_member": {
      "id": 42,
      "is_bot": true,
      "first_name": "string",
      "last_name": "string",
      "username": "string",
      "language_code": "string",
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "supports_inline_queries": true
    },
    "new_chat_title": "string",
    "new_chat_photo": [
      {
        "file_id": "string",
        "file_unique_id": "string",
        "width": 42,
        "height": 42,
        "file_size": 42
      }
    ],
    "delete_chat_photo": true,
    "group_chat_created": true,
    "supergroup_chat_created": true,
    "channel_chat_created": true,
    "migrate_to_chat_id": 42,
    "migrate_from_chat_id": 42,
    "pinned_message": {},
    "invoice": {
      "title": "string",
      "description": "string",
      "start_parameter": "string",
      "currency": "string",
      "total_amount": 42
    },
    "successful_payment": {
      "currency": "string",
      "total_amount": 42,
      "invoice_payload": "string",
      "shipping_option_id": "string",
      "order_info": {
        "name": "string",
        "phone_number": "string",
        "email": "string",
        "shipping_address": {
          "country_code": "string",
          "state": "string",
          "city": "string",
          "street_line1": "string",
          "street_line2": "string",
          "post_code": "string"
        }
      },
      "telegram_payment_charge_id": "string",
      "provider_payment_charge_id": "string"
    },
    "connected_website": "string",
    "passport_data": {
      "data": [
        {
          "type": "personal_details",
          "files": [
            {
              "file_id": "string",
              "file_unique_id": "string",
              "file_size": 42,
              "file_date": 42
            }
          ],
          "data": "string",
          "phone_number": "string",
          "email": "string",
          "front_side": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "reverse_side": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "selfie": {
            "file_id": "string",
            "file_unique_id": "string",
            "file_size": 42,
            "file_date": 42
          },
          "translation": [
            {
              "file_id": "string",
              "file_unique_id": "string",
              "file_size": 42,
              "file_date": 42
            }
          ],
          "hash": "string"
        }
      ],
      "credentials": {
        "data": "string",
        "hash": "string",
        "secret": "string"
      }
    },
    "proximity_alert_triggered": {
      "traveler": {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      },
      "watcher": {
        "id": 42,
        "is_bot": true,
        "first_name": "string",
        "last_name": "string",
        "username": "string",
        "language_code": "string",
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "supports_inline_queries": true
      },
      "distance": 42
    },
    "reply_markup": {
      "": [
        [
          {}
        ]
      ]
    }
  }
}