Class EditMessageMediaMessage

  • All Implemented Interfaces:
    Serializable

    public class EditMessageMediaMessage
    extends OutgoingMessage
    Message to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily.
    See Also:
    Serialized Form
    • Constructor Detail

      • EditMessageMediaMessage

        public EditMessageMediaMessage​(String chatId,
                                       Integer messageId,
                                       String inlineMessageId,
                                       InputMedia media,
                                       InlineKeyboardMarkup replyMarkup)
        Builds EditMessageMediaMessage instance.
        Parameters:
        chatId - Unique identifier for the target chat or username of the target channel.
        messageId - Identifier of the message to edit. Required if inline_message_id is not specified.
        inlineMessageId - Required if chat_id and message_id are not specified. Identifier of the inline message.
        media - The media to send.
        replyMarkup - An inline keyboard that appears right next to the message it belongs to.