lib/tdlib/client_methods.rb
# Edits the content of a message with an animation, an audio, a document, a photo or a video, including message
#   caption.
# If only the caption needs to be edited, use editMessageCaption instead.
# The media can't be edited if the message was set to self-destruct or to a self-destructing media.
# The type of message content in an album can't be changed with exception of replacing a photo with a video or vice
#   versa.
# Returns the edited message after the edit is completed on the server side.
#
# @param chat_id [Integer] The chat the message belongs to.
# @param message_id [Integer] Identifier of the message.
# @param reply_markup [TD::Types::ReplyMarkup] The new message reply markup; pass null if none; for bots only.
# @param input_message_content [TD::Types::InputMessageContent] New content of the message.
#   Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument,
#   {TD::Types::InputMessageContent::Photo} or inputMessageVideo.
# @return [TD::Types::Message]
Edits the content of a message with an animation, an audio, a document, a photo or a video, including message
caption.
If only the caption needs to be edited, use editMessageCaption instead.
The media can't be edited if the message was set to self-destruct or to a self-destructing media.
The type of message content in an album can't be changed with exception of replacing a photo with a video or vice
versa.
Returns the edited message after the edit is completed on the server side.
Edits the content of a message with an animation an audio a document a photo or a video including message caption . If only the caption needs to be edited use editMessageCaption instead . The media can ' t be edited if the message was set to self - destruct or to a self - destructing media . The type of message content in an album can ' t be changed with exception of replacing a photo with a video or vice versa . Returns the edited message after the edit is completed on the server side .
def edit_message_media(chat_id:, message_id:, reply_markup:, input_message_content:)
    broadcast('@type'                 => 'editMessageMedia',
              'chat_id'               => chat_id,
              'message_id'            => message_id,
              'reply_markup'          => reply_markup,
              'input_message_content' => input_message_content)
  end
def edit_message_media ( chat_id : , message_id : , reply_markup : , input_message_content : ) broadcast ( '@type' => 'editMessageMedia' , 'chat_id' => chat_id , 'message_id' => message_id , 'reply_markup' => reply_markup , 'input_message_content' => input_message_content ) end
Edits the content of a message with an animation, an audio, a document, a photo or a video, including message
caption.
Edits the content of a message with an animation an audio a document a photo or a video including message caption .
None
TD::Types::Message
chat_id
The chat the message belongs to.
The chat the message belongs to .
message_id
Identifier of the message.
Identifier of the message .
reply_markup
The new message reply markup; pass null if none; for bots only.
The new message reply markup ; pass null if none ; for bots only .
input_message_content
New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, {TD::Types::InputMessageContent::Photo} or inputMessageVideo.
New content of the message . Must be one of the following types : inputMessageAnimation inputMessageAudio inputMessageDocument { TD :: Types :: InputMessageContent :: Photo } or inputMessageVideo .