Class SendMediaGroup
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<ArrayList<Message>>
org.telegram.telegrambots.meta.api.methods.send.SendMediaGroup
- All Implemented Interfaces:
Validable
- Version:
- 3.5 Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only group in an album with messages of the same type. On success, an array of Messages that were sent is returned.
- Author:
- Ruben Bermudez
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponse(String answer) Deserialize a json answer to the response type to a methodvoidvoidGetter for method path (that is the same as method name)voidvoidvalidate()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:
-
MESSAGETHREADID_FIELD
- See Also:
-
MEDIA_FIELD
- See Also:
-
REPLYTOMESSAGEID_FIELD
- See Also:
-
DISABLENOTIFICATION_FIELD
- See Also:
-
ALLOWSENDINGWITHOUTREPLY_FIELD
- See Also:
-
PROTECTCONTENT_FIELD
- See Also:
-
-
Constructor Details
-
SendMediaGroup
public SendMediaGroup()
-
-
Method Details
-
setChatId
-
enableNotification
public void enableNotification() -
disableNotification
public void disableNotification() -
deserializeResponse
Description copied from class:PartialBotApiMethodDeserialize a json answer to the response type to a method- Specified by:
deserializeResponsein classPartialBotApiMethod<ArrayList<Message>>- Parameters:
answer- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
getMethod
Description copied from class:PartialBotApiMethodGetter for method path (that is the same as method name)- Specified by:
getMethodin classPartialBotApiMethod<ArrayList<Message>>- Returns:
- Method path
-