libtd-ktx / kotlinx.telegram.extensions / ChatKtx / editMessageMedia
editMessageMedia
open suspend fun Chat.editMessageMedia(messageId: Long, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent?): Message
Suspend function, which edits the content of a message with an animation, an audio, a document, a photo or a video. The media in the message can’t be replaced if the message was set to self-destruct. Media can’t be replaced by self-destructing media. Media in an album can be edited only to contain a photo or a video. Returns the edited message after the edit is completed on the server side.
Parameters
messageId - Identifier of the message.
replyMarkup - The new message reply markup; for bots only.
inputMessageContent - New content of the message. Must be one of the following types:
InputMessageAnimation, InputMessageAudio, InputMessageDocument, InputMessagePhoto or
InputMessageVideo.
Return TdApi.Message Describes a message.