Class EditMessageMedia
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<Serializable>
org.telegram.telegrambots.meta.api.methods.updatingmessages.EditMessageMedia
- All Implemented Interfaces:
Validable
- Version:
- 4.0.0 Use this method to edit audio, document, photo, or video messages. f 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 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 was sent by the bot, the edited Message is returned, otherwise True is returned.
- Author:
- Ruben Bermudez
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponse
(String answer) Deserialize a json answer to the response type to a methodGetter for method path (that is the same as method name)void
void
validate()
Validates that mandatory fields are filled and optional objectsMethods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
Field Details
-
PATH
- See Also:
-
CHATID_FIELD
- See Also:
-
MESSAGEID_FIELD
- See Also:
-
INLINE_MESSAGE_ID_FIELD
- See Also:
-
MEDIA_FIELD
- See Also:
-
REPLYMARKUP_FIELD
- See Also:
-
-
Constructor Details
-
EditMessageMedia
public EditMessageMedia()
-
-
Method Details
-
setChatId
-
getMethod
Description copied from class:PartialBotApiMethod
Getter for method path (that is the same as method name)- Specified by:
getMethod
in classPartialBotApiMethod<Serializable>
- Returns:
- Method path
-
deserializeResponse
Description copied from class:PartialBotApiMethod
Deserialize a json answer to the response type to a method- Specified by:
deserializeResponse
in classPartialBotApiMethod<Serializable>
- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-