Class EncryptedPassportElement

java.lang.Object
io.micronaut.chatbots.telegram.api.EncryptedPassportElement

public class EncryptedPassportElement extends Object
Since:
1.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • EncryptedPassportElement

      public EncryptedPassportElement()
  • Method Details

    • getType

      @NonNull public @NonNull String getType()
      Returns:
      Element type
    • setType

      public void setType(@NonNull @NonNull String type)
      Parameters:
      type - Element type
    • getData

      @Nullable public @Nullable String getData()
      Returns:
      Base64-encoded encrypted Telegram Passport element data provided by the user
    • setData

      public void setData(@Nullable @Nullable String data)
      Parameters:
      data - Base64-encoded encrypted Telegram Passport element data provided by the user
    • getPhoneNumber

      @Nullable public @Nullable String getPhoneNumber()
      Returns:
      User's verified phone number, available only for “phone_number” type.
    • setPhoneNumber

      public void setPhoneNumber(@Nullable @Nullable String phoneNumber)
      Parameters:
      phoneNumber - User's verified phone number, available only for “phone_number” type
    • getEmail

      @Nullable public @Nullable String getEmail()
      Returns:
      User's verified email address, available only for “email” type.
    • setEmail

      public void setEmail(@Nullable @Nullable String email)
      Parameters:
      email - User's verified email address, available only for “email” type.
    • getFiles

      @Nullable public @Nullable List<PassportFile> getFiles()
      Returns:
      List of encrypted files with documents provided by the user
    • setFiles

      public void setFiles(@Nullable @Nullable List<PassportFile> files)
      Parameters:
      files - Array of encrypted files with documents provided by the user
    • getFrontSide

      @Nullable public @Nullable PassportFile getFrontSide()
      Returns:
      Encrypted file with the front side of the document, provided by the user.
    • setFrontSide

      public void setFrontSide(@Nullable @Nullable PassportFile frontSide)
      Parameters:
      frontSide - Encrypted file with the front side of the document, provided by the user.
    • getReverseSide

      @Nullable public @Nullable PassportFile getReverseSide()
      Returns:
      Encrypted file with the reverse side of the document, provided by the user.
    • setReverseSide

      public void setReverseSide(@Nullable @Nullable PassportFile reverseSide)
      Parameters:
      reverseSide - Encrypted file with the reverse side of the document, provided by the user.
    • getSelfie

      @Nullable public @Nullable PassportFile getSelfie()
      Returns:
      Encrypted file with the selfie of the user holding a document, provided by the user;
    • setSelfie

      public void setSelfie(@Nullable @Nullable PassportFile selfie)
      Parameters:
      selfie - Encrypted file with the selfie of the user holding a document, provided by the user;
    • getTranslation

      @Nullable public @Nullable List<PassportFile> getTranslation()
      Returns:
      List of encrypted files with translated versions of documents provided by the user.
    • setTranslation

      public void setTranslation(@Nullable @Nullable List<PassportFile> translation)
      Parameters:
      translation - Array of encrypted files with translated versions of documents provided by the user.
    • getHash

      @NonNull public @NonNull String getHash()
      Returns:
      Base64-encoded element hash for using in PassportElementErrorUnspecified
    • setHash

      public void setHash(@NonNull @NonNull String hash)
      Parameters:
      hash - Base64-encoded element hash for using in PassportElementErrorUnspecified
    • toString

      public String toString()
      Overrides:
      toString in class Object