Class PassportData

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

public class PassportData extends Object
Contains information about Telegram Passport data shared with the bot by the user.
See Also:
  • Constructor Details

    • PassportData

      public PassportData()
  • Method Details

    • getData

      public List<EncryptedPassportElement> getData()
      Returns:
      List with information about documents and other Telegram Passport elements that was shared with the bot.
    • setData

      public void setData(List<EncryptedPassportElement> data)
      Parameters:
      data - Array with information about documents and other Telegram Passport elements that was shared with the bot.
    • getCredentials

      public EncryptedCredentials getCredentials()
      Returns:
      Encrypted credentials required to decrypt the data.
    • setCredentials

      public void setCredentials(EncryptedCredentials credentials)
      Parameters:
      credentials - Encrypted credentials required to decrypt the data.
    • toString

      public String toString()
      Overrides:
      toString in class Object