Class TdApi.InputIdentityDocument

  • Enclosing class:
    TdApi

    public static class TdApi.InputIdentityDocument
    extends TdApi.Object
    An identity document to be saved to Telegram Passport.
    • Field Detail

      • number

        public String number
        Document number; 1-24 characters.
      • expiryDate

        public TdApi.Date expiryDate
        Document expiry date; pass null if not applicable.
      • reverseSide

        public TdApi.InputFile reverseSide
        Reverse side of the document; only for driver license and identity card; pass null otherwise.
      • selfie

        public TdApi.InputFile selfie
        Selfie with the document; pass null if unavailable.
      • translation

        public TdApi.InputFile[] translation
        List of files containing a certified English translation of the document.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InputIdentityDocument

        public InputIdentityDocument()
        An identity document to be saved to Telegram Passport.
      • InputIdentityDocument

        public InputIdentityDocument​(String number,
                                     TdApi.Date expiryDate,
                                     TdApi.InputFile frontSide,
                                     TdApi.InputFile reverseSide,
                                     TdApi.InputFile selfie,
                                     TdApi.InputFile[] translation)
        An identity document to be saved to Telegram Passport.
        Parameters:
        number - Document number; 1-24 characters.
        expiryDate - Document expiry date; pass null if not applicable.
        frontSide - Front side of the document.
        reverseSide - Reverse side of the document; only for driver license and identity card; pass null otherwise.
        selfie - Selfie with the document; pass null if unavailable.
        translation - List of files containing a certified English translation of the document.