Telegram Bot API

Use this method to edit animation, audio, document, live photo, photo, or video messages, or to replace a text or a rich message with a media. 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, a live 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 is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.

post/editMessageMedia

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/editMessageMedia
  • Auth: none declared

Request body

business_connection_idstring

Unique identifier of the business connection on behalf of which the message to be edited was sent

message_idinteger

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

inline_message_idstring

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

Response

Telegram API response

oktrue required

Changes

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the new optional request property //////////////// (media type: application/json)

    • info

      added the new optional request property //////////////// (media type: multipart/form-data)

    • info

      added the optional property ///////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property //////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property //////////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property ///////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ///////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property ///////////////////// to the response with the status

    • info

      added the optional property ///////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property ///////////////////////// to the response with the status

    • info

      added the optional property /////////////////////// to the response with the status

    • info

      added the optional property //////////////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property //////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property //////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status