api.editMessageMedia()
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
Parameters
EditMessageMediaParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | The chat the message belongs to |
messageId | number | Identifier of the message |
replyMarkup | The new message reply markup; pass null if none; for bots only | |
inputMessageContent | New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'editMessageMedia' | 'error'
airgram: Airgram
request: {
method: 'editMessageMedia'
params: EditMessageMediaParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}