Class PassportElementErrorSelfie
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorSelfie
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,PassportElementError
public class PassportElementErrorSelfie extends Object implements PassportElementError
- Version:
- 4.0.0 Represents an error in a file with a selfie. The error is considered resolved when the file with the selfie changes.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PassportElementErrorSelfie()PassportElementErrorSelfie(String type, String fileHash, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileHash()StringgetMessage()StringgetSource()StringgetType()PassportElementErrorSelfiesetFileHash(String fileHash)PassportElementErrorSelfiesetMessage(String message)PassportElementErrorSelfiesetType(String type)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
setType
public PassportElementErrorSelfie setType(String type)
-
getSource
public String getSource()
-
getFileHash
public String getFileHash()
-
setFileHash
public PassportElementErrorSelfie setFileHash(String fileHash)
-
getMessage
public String getMessage()
-
setMessage
public PassportElementErrorSelfie setMessage(String message)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-